Skip to content
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

Fixed allowed_domains restriction feature #1119

Merged

Conversation

niranjandasMM
Copy link
Contributor

@niranjandasMM niranjandasMM commented Mar 24, 2025

Hi,

I tested the allowed_domains/restrict_urls feature and noticed that when enabling domain restrictions, all domains (including the allowed ones) gets blocked.

After debugging, I found that about:blank was incorrectly flagged as a non-allowed URL, which prevented navigation.

This PR modifies _is_url_allowed to explicitly allow "about:blank", as it's a common default in browser automation.

Let me know if any further adjustments are needed—this fix worked in my case.

Detailed Issue opened: #1120

@CLAassistant
Copy link

CLAassistant commented Mar 24, 2025

CLA assistant check
All committers have signed the CLA.

@niranjandasMM
Copy link
Contributor Author

Kindly please merge as soon as possible if right, because this feature needed to be integrated in one of my clients Product, Currently its a blocker for us.

@SmartManoj
Copy link
Contributor

blocker

You can still install using your branch.

@niranjandasMM
Copy link
Contributor Author

blocker

You can still install using your branch.

HI @SmartManoj , Can you care to elaborate more ?

@niranjandasMM
Copy link
Contributor Author

blocker

You can still install using your branch.

HI @SmartManoj , Can you care to elaborate more ?.
We would rather choose from an offical branch with proper versioning and updates.

@pirate
Copy link
Member

pirate commented Mar 25, 2025

thanks for the fix @niranjandasMM 👍

@pirate pirate merged commit a8c2d32 into browser-use:main Mar 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants