Adblocking using a hosts file

9 posts / 0 new
Last post
gallo
gallo's picture
Adblocking using a hosts file

Hi folks, Props to Voxel on his firmware for this router, got ssh and entware installed and its humming nicely. Got a question has anyone implemented adblocking thru a hosts file on this router? If so i'd like to read a walkthough on it. TIA ;)

Voxel
Voxel's picture
Adblocking using host file

Adblocking using host file IMO is not real protection. I did some AdBlocking solution using Entware and privoxy (proxy server) with AdBlock functionality. 
 

https://www.snbforums.com/threads/looking-for-an-ad-blocking-option-for-...

Probably it has sense to do it again for new version of Entware.

Voxel.

gallo
gallo's picture
yeah thanx voxel i saw that

yeah thanx voxel i saw that last night, the link is dead, could you repost it. tia

Voxel
Voxel's picture
New version. 

New version. 
 

https://www.voxel-firmware.com/Downloads/Voxel/Entware/entware-cortex-a1...

After installation maybe you will need to correct /opt/etc/privoxy/config  It is set to allow 192.168.1.0/24 

Update script is /opt/etc/privoxy/privoxy-bl-upd.pl. Could be executed periodically from telnet/ssh console to re-new DB.

Voxel.

gallo
gallo's picture
woosh thank you Voxel will

woosh thank you Voxel will give it a try

gallo
gallo's picture
Voxel I'll say it again, "YOU

Voxel I'll say it again, "YOU ARE THE MAN", proxy is working right out of the box. Didn't change that ip address because i dont know what to change it to. Did an update and its blocking pretty much all ads. Question: if i need to shut it off what would the command be?

gallo
gallo's picture
LOL disregard i had a brain

LOL disregard i had a brain fart. Just dont use proxy. But i'd still like to know what to change 192.168.1.0/24 to. TIA

Voxel
Voxel's picture
Good that you like it ;-)

Good that you like it ;-)

 

Question: if i need to shut it off what would the command be?

 

Manually. Through telnet/ssh, the command is:

/opt/etc/init.d/S24privoxy stop
 

But i'd still like to know what to change 192.168.1.0/24 to.

 

I had in mind that if your router IP is not 192.168.1.1 but say 192.168.10.1 and your LAN is 192.168.10.2-192.168.10.255 then you had to change permissions allowing client of your range:

192.168.1.0/24 --> 192.168.10.0/24
Voxel.
 

 

gallo
gallo's picture
excellent thank you. cant

excellent thank you. cant wait to see what future development you produce. ;)