If you place some hosts in the same format in a file called /jffs/hosts or /opt/hosts they will be added to the /tmp/dlhosts _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Posted: Wed Mar 25, 2009 18:51 Post subject: end of reply
hmmm I see i'm getting a /tmp/dlhosts and not a /opt/dlhosts...Could this be the trouble? and why is it not making the /opt/dlhosts if it is? I'm not using jffs (which is why i used this script over the other one you made) or changing anything else. I have the addn-hosts=/tmp/dlhosts added at the additional dnsmasq options and dnsmasq , local dns checked. this is a wrt54 g ver 2.2 running SVN revision 11650M NEWD Eko...also have it giving static ip's out to both wired and wireless using mac's and wep, only one dhcp address enabled to give out to a guest, everything else is static. runs rock solid with a automatic reboot once a week, only thing in the router i ever see is tx errors ( not too many, 10 to 50 in a week ) plug and play is enabled and works, ddns is enabled and works. Mostly just a standard config on the router.
Forget the /opt in my example.
I'm putting everything on my USB-stick....
Your script seems fine except for the space between "prin t" but that probably came from pasting it here in the forum.
It clearly says to replace 127.0.0.1 to 0.0.0.0 _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
how do you remove a line from the hosts file? I ask because every once in a while I need to visit bill.ccbill.com and everytime I do, it blocks it...so im thinking if there was a command I could issue which would comment the line, and then a command that would uncomment the line for when I dont need it and I could save it as a custom script. Thanks in advance.
Thank you for fixing this Frater, I just noticed today that my script was not working, updated with your new example from the start of this post and all is well again! Thank you so much!!!
yeah so what it is nice because looks like suckers got smart and idea of blocking them with hosts does not work well for example i cannot watch videos on video.msn.com, some other sites also do not play. also had case where appletv was rebooting because of some 2o7.net site
i think next step should be not hosts file but something like adblock on ff instead of blocking http get requests should be checked.
This is working great on my WRT160Nv1! I am also using the AdServ program on my server and again...GREAT! Thanks to all for the help in getting this set up. I am humbled.
I am spreading the word as well. Safety is so important when surfing the net!
yeah so what it is nice because looks like suckers got smart and idea of blocking them with hosts does not work well for example i cannot watch videos on video.msn.com, some other sites also do not play. also had case where appletv was rebooting because of some 2o7.net site
i think next step should be not hosts file but something like adblock on ff instead of blocking http get requests should be checked.
Although it's not my idea, it's still a good idea because the whole thing is quite transparent and it does a good part of the job without having any performance setbacks.
You're focusing on the things it can't do. Well, it doesn't do my dishes either, but that doesn't make it a valid complaint.
PS.. I waited a whole day to make sure that my previous statement was true and I can confirm... For sure it doesn't do my dishes. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
i did not say it is your idea nor that is bad.
this is not about dishes Frater nor many other other things.
We should evolve Frater evolve that is word
I have been using AdServer to clean up my pages in conjunction to your code. I wanted to ask if Homer could be used instead? Homer listens on 127.0.0.1 by default. Do you know of a way to make it listen so all workstations on the intranet can ustilize it?