Skip to content

Conditionally allow request redirection with environment variable #3305

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raka-gunarto
Copy link

@raka-gunarto raka-gunarto commented Aug 14, 2025

Sometimes you're behind a corporate firewall like Cisco Umbrella which does funny business like adding redirections. Add redirect domain allowlist with environment variable.

Example use:

  • set env var HF_DOWNLOAD_REDIRECT_ALLOWLIST=opendns.com if there's a corp firewall redirecting your web requests to opendns.com

@raka-gunarto raka-gunarto force-pushed the raka-gunarto/allow-redirects-with-env-var branch 2 times, most recently from 4389869 to 5f2febd Compare August 14, 2025 14:42
@raka-gunarto
Copy link
Author

This has been tested successfully behind a Cisco Umbrella firewall inserting redirects to opendns.com, can someone please review?

@raka-gunarto raka-gunarto force-pushed the raka-gunarto/allow-redirects-with-env-var branch from 5f2febd to 47f0cc4 Compare August 14, 2025 14:53
@raka-gunarto raka-gunarto force-pushed the raka-gunarto/allow-redirects-with-env-var branch from 47f0cc4 to 281d675 Compare August 14, 2025 15:35
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.

1 participant