I am trying to create a traffic BOT with puppeteer headless browser.
but if I test the bot with browserscan.net, it doesn’t pass the bot detection.
Any one with better idea how I can achieve this?
This is code I trying to override the CDP
await page.evaluateOnNewDocument(() => {
const originalQuery = window.navigator.permissions.query;
window.navigator.permissions.query = (parameters) => (
parameters.name === 'devtools' ? Promise.resolve({ state: 'denied' }) : originalQuery(parameters)
);
});
New contributor
Bello Adeoye is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.