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?