Results 1 to 2 of 2
Oct 29, 2012, 03:24 #1
Blocking PHP files with HOSTS file?
I add a lot of custom entries to my windoze HOSTS file to "enhance" my browsing and web-surfing experience.
Something that I'm finding is that when I browse to certain web-sites, my browser is poping up a window asking me if I want to save the file X.php, where X is usually "like" or "likebox". When I look at the underlying web-code on the web-page, I see that the request for the php file is associated with a host that is in my HOSTS file. When I tell my browser to Save the file, I end up with a file of zero size.
Is this the expected behavior for a browser when it tries to get a php file from a blocked host?
Is it more trouble than it's worth to run a local web-server to serve up (or server-side-run?) an empty php file?
Oct 29, 2012, 03:53 #2
- Join Date
- Oct 2005
- Milton Keynes, UK
- 9 Post(s)
- 2 Thread(s)
I don't see how the browser would get a response from the host in order to know enough to try to download the file. Are you pointing these to 127.0.0.1? It's likely there's something running locally which is causing this behaviour.