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

Add Proxy Support for Self-Hosted Firecrawl #698

Closed
techUdayMungalpara opened this issue Sep 24, 2024 · 1 comment
Closed

Add Proxy Support for Self-Hosted Firecrawl #698

techUdayMungalpara opened this issue Sep 24, 2024 · 1 comment

Comments

@techUdayMungalpara
Copy link

Add Proxy Support for Self-Hosted Firecrawl

Problem

  • Self-hosted Firecrawl can't use proxy services
  • Challenges:
    1. IP-based access restrictions
    2. Cloudflare blocking
    3. CAPTCHA interruptions

Proposed Solution

  • Implement proxy support using API key from providers (e.g., ZenRow,ScrapingBee)

Implementation

  1. Add ProxyConfig class
  2. Update config file:
    proxy:
      enabled: true
      provider: "zenrow"
      api_key: "your_api_key_here"
  3. Create ProxyClient class for API authentication
  4. Modify HTTP client to use ProxyClient
  5. Add error handling and logging
  6. Write unit tests

Benefits

  • Bypass IP restrictions
  • Handle Cloudflare protection
  • Reduce CAPTCHA interruptions
  • Simplify proxy management

Future Enhancements

  • Support any proxy providers
  • Automatic provider fallback
@techUdayMungalpara techUdayMungalpara closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
@mschfh
Copy link

mschfh commented Oct 7, 2024

Zenrows/Bright Data offer a scraping browser that handles not just proxy rotation but also Cloudflare/CAPTCHA bypass, etc

I opened a feature request to implement support for remote Playwright instances so those can be used.

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

No branches or pull requests

2 participants