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?
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.