Skip to content

Google detecting browser #3763

Closed
Closed
@izzetxyz

Description

@izzetxyz

Our systems have detected unusual traffic from your computer network. forwarding to https://google.com/sorry i cant search it.

with SB(browser="firefox", # Specify Firefox
uc=True,
headless=config.HEADLESS_BROWSER,
# test=True, # Not typically needed for general scripting, SB handles test context.
proxy=proxy_for_sb,
agent=random_user_agent,
user_data_dir=user_data_dir_path, # For Firefox, this is the profile directory
# Removed chromium_arg
# extension_zip=None, # Removed, was for Chrome
firefox_opts={"args": firefox_args_list, "preferences": firefox_prefs_dict} if firefox_args_list or firefox_prefs_dict else None,
pls="none", # pageLoadStrategy
ad_block_on=True, # Enable AdBlock
) as sb:

        # Initial blank page navigation - good practice
        print(f"[Worker {worker_id}] Navigating to about:blank first...")
        sb.open("about:blank")
        utils.human_delay(500, 1000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewhereinvalid usageYou may need to change what you're doing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions