rakuten.com Chrome Headless Detection
Demonstrates flaky but highly effective Chrome Headless detection used by rakuten.com. Most of the time Chrome Headless is detected and access to the content is denied, even if the most up to date publicly known evasions are applied (headless-cat-n-mouse).
If run in (regular) non headless mode, access is always granted.
This small NodeJs script uses the awesome Puppeteer project.
npm run headless # run using puppeteer bundled Chromium in headless mode npm run browser # run using puppeteer bundled Chromium in regular (non headless) mode
Program prints logs to stdout and creates screenshots of pages in subdir ./screenshots
Chrome Headless has been blocked 7 times out of 10 attempts. Chrome Non-Headless has been blocked 0 times out of 10 attempts.