L
Luc The Perverse
Hi!
I have a new project.
To reduce ads that I see, I have downloaded a 1/2 mb hosts file which routes
most DNS to localhost 127.0.0.1
Problem is, sometimes it displays "cannot find page" and it tries and waits
for a picture to load.
I'd like to fill the void, with a webserver that serves nothing but blank
pages, and null media. (1x1 transparent gif, 1x1 JPG, Empty do nothing
Flash etc.)
I plan on running a real webserver (like Apache) and grabbing actual empty
files, and then hardcoding the server response into my application. I will
then feed this information whenever a request comes in.
I found this,
http://java.sun.com/developer/technicalArticles/Networking/Webserver/WebServer.java
Do you think I could convert this into what I need, or is it simpler than
this?
I have a new project.
To reduce ads that I see, I have downloaded a 1/2 mb hosts file which routes
most DNS to localhost 127.0.0.1
Problem is, sometimes it displays "cannot find page" and it tries and waits
for a picture to load.
I'd like to fill the void, with a webserver that serves nothing but blank
pages, and null media. (1x1 transparent gif, 1x1 JPG, Empty do nothing
Flash etc.)
I plan on running a real webserver (like Apache) and grabbing actual empty
files, and then hardcoding the server response into my application. I will
then feed this information whenever a request comes in.
I found this,
http://java.sun.com/developer/technicalArticles/Networking/Webserver/WebServer.java
Do you think I could convert this into what I need, or is it simpler than
this?