-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebrowser Patches Not Effectively Bypassing Bot Detection #80
Comments
Could you please share the code how you could reproduce it in node? |
Of course! I wanted to isolate the problem as much as possible and not to confuse it with this. let { chromium } = require('rebrowser-playwright');
const fs = require('fs');
(async () => {
try {
const context = await chromium.launchPersistentContext('', {
headless: false,
ignoreDefaultArgs: ["--disable-extensions"],
args: [
'--headless=new',
'--disable-blink-features=AutomationControlled',
'--disable-software-rasterizer',
'--ignore-gpu-blocklist',
'-enable-webgl',
'--enable-features=WebRTC-H264WithOpenH264FFmpeg,WebGL2ComputeRendering',
'--disable-background-timer-throttling',
'--disable-renderer-backgrounding',
'--no-sandbox',
'--disable-gpu',
'--remote-allow-origins=*',
'--remote-debugging-address=0.0.0.0',
'--remote-debugging-port=9222',
'--disable-dev-shm-usage',
]
});
const page = context.pages()[0];
await page.goto('https://bot-detector.rebrowser.net/');
await new Promise(r => setTimeout(r, 2000));
const screenshotBuffer = await page.screenshot();
fs.writeFileSync('screenshot.png', screenshotBuffer);
// process.exit(0);
} catch (error) {
console.error('Error launching browser:', error);
process.exit(1);
}
})(); Interestingly, without the sleep I actually get this:
|
I have been attempting to use Rebrowser patches with both the npm and Python packages, using the patched version directly. Below is the Python script I am using to launch the browser and connect via CDP:
I have experimented with various argument combinations, but regardless of the setup, I encounter the same issue. Specifically, when I navigate to https://bot-detector.rebrowser.net/ and take a screenshot through Playwright, I consistently receive the following detection result:
Steps to Reproduce
Use rebrowser_playwright of version 1.49.1.
Use the provided script to launch a persistent Chromium context with Rebrowser patches.
Navigate to https://bot-detector.rebrowser.net/ via CDP, using something like this:
In this specific case Im using Python 3.12.7, however this reproduces in node as well.
I would appreciate any guidance on what might be missing in my setup or any configuration changes required to address this issue.
Thank you in advance for your assistance!
The text was updated successfully, but these errors were encountered: