4 ms·
Doesn't this: >> also, in our nginx configuration, we deny all HTTP connections to unknown vhosts. mean that forming the URL as 'http://.long2ip(ip2long($argv
by IgorPartola 15y ago
Doesn't this:
>> also, in our nginx configuration, we deny all HTTP connections to unknown vhosts.
mean that forming the URL as 'http://.long2ip(ip2long($argv[1])+$c http://.long2ip(ip2long($argv[1])+$c) will not work?
- pak 15y agoYes, but I believe their intent was to rewrite the other script as it functioned, not for it to be any more effective.
- IgorPartola 15y agoI suppose. I wonder what would be a better way to find their web server. Maybe looking for IPs that run a web server using nginx, but don't respond to the host specified in their rDNS record. Then again, that would lead to way too many hosts.
- getsat 15y agoI doubt they'll set up a PTR record. What they'd do if they're smart is firewall their box so it only accepts port 80 requests from Cloudflare's systems. Anything else can be discarded, e.g.: iptables -A INPUT DROP iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -p tcp --dport 80 -s w.x.y.z/xx -j ACCEPT
- IgorPartola 15y agoProbably. There are a lot of hosting/VPS companies out there that have instant provisioning and don't ask too many questions. I imagine it would be pretty hard to find them this way unless they do something stupid.