Scripts to prevent Web scraping
Botsafe breaks link content into array of letters. The data is stored into HTML link element via data attribute named data-botsafe. Browser turns link data into working link using JavaScript.
This kind of approach defends link data from Crawlers that:
- Have JavaScript disabled for security reasons.
- Run after DOM load before Botsafe starts.
- Are not used to crawl this kind of data.
We add noise into the array so regular AI cannot detect the pattern of the array. By default i2 and i5 are random noise.
Botsafe allows every kind of HTML5 eventlistener to trigger Botsafe. You can change triggering method using link element data-reassemble-on -attribute.
After finishing raessembling the Botsafe removes it's attributes not including botsafe classname.