Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

IP restriction doesn't block a domain which resolves restricted IP address. #19

Closed
wants to merge 3 commits into from

Conversation

bramp
Copy link
Contributor

@bramp bramp commented Nov 25, 2012

Lookup the DNS of the hostname before fetching the URL. This ensures correct restricted IP address matching can be done. In addition minor refactoring to make the the code slightly cleaner.

The DNS localhost.bramp.net resolves to 127.0.0.1, which is on the restricted
IP address list, however, to test matches the host name, not the actualy
address.
…correct

restricted IP address matching can be done. In addition minor refactoring to
make the the code slightly cleaner.
@atmos
Copy link
Owner

atmos commented Nov 25, 2012

I'd rather see us remove host restrictions entirely than add this. People shouldn't be running this anywhere with sensitive info.

@atmos
Copy link
Owner

atmos commented Jul 4, 2013

Just run it on heroku. ✨

@atmos atmos closed this Jul 4, 2013
@atmos atmos mentioned this pull request Nov 15, 2013
atmos added a commit that referenced this pull request Jan 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants