How-To-Prevent-Scraping icon indicating copy to clipboard operation
How-To-Prevent-Scraping copied to clipboard

Another way to scrape data

Open lnfel opened this issue 3 years ago • 0 comments

I just wanted to share one of the tricks I did to scrape data to a website. Scraping can also be done by implementing a Chrome Extension. Since chrome extension hooks into website as inline script it is very hard to deal with.

This can be mitigated by having a robust Content Security Policy for inline scripts however, most websites doesn't have CSP policy implemented. Just enable nonce to token for your own scripts and block all other scripts not using those tokens or nonce.

lnfel avatar Jun 25 '21 07:06 lnfel