[How to] an host file to fight again advertisement

Post tutorials, HOWTO's and other useful resources here.
blablotin
Black ninja
Black ninja
Posts: 67
Joined: 04 Jan 2011, 22:59
Location: Euro

[How to] an host file to fight again advertisement

Post#1 by blablotin » 23 Mar 2011, 17:38

Hi all,
I have discover a tip to fight again advertisement by host file, thanks to Hajdar we will see how to modify this file to block advertisement and then the way to update automatically.

why to do this since we can use AdBlock or others softwares to block advertisement?
Because it is not enough sufficiency for safe level or download speed; In fact although adblock prevent displaying of advertisement content, it is downloaded and is present in the browser's cash, and it would be the same for trojans and malwares, so Hajdar give an updated host file to block unwanted files 's download before the begin of the connection. since it will look up blacklist content in the localhost: 127.0.0.1 instead of the internet.
For example: if we put a line: 127.0.0.1 http://www.google.com, then any program who try to connect to http://www.google.com will be redirected to the server address with ip 127.0.0.1
The hosts is available in his website: http://www.adzhosts.fr/?cat=4


Before the install, remember to back up the hosts file:

Code: Select all

cd /etc/
cp hosts hosts.backup
installation:
first way:
go to http://www.adzhosts.fr/ and download the last built of AdZHosts. Then unzip the file un your home folder. And finally move the hosts file into /etc/ folder as root.

Second way
With the script available here:
http://kosvocore.free.fr/AdZHosts/adzhosts.sh. it need to be root to be launched.

If you have a problem to connect to a website, you can delete its address from hosts

uninstall:
you can delete the replaced hosts file, and restore the back up of the original.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: [How to] an host file to fight again advertisement

Post#2 by Hamza » 02 Apr 2011, 20:35

I know this method , but why , an user need to install a package for do this ?
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [How to] an host file to fight again advertisement

Post#3 by brokenman » 02 Apr 2011, 21:58

I currently use host file to block in this way. I have no time for collecting up to date info every week so a list like this is excellent! Thanks.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: [How to] an host file to fight again advertisement

Post#4 by Hamza » 02 Apr 2011, 22:03

Some friends are using this method for block the ads and for block the activation of W!N
NjVFQzY2Rg==

tb01
White ninja
White ninja
Posts: 12
Joined: 23 Aug 2012, 16:42
Distribution: P-MATE (all) x32/x64, debian
Location: -happydale-

Re: [How to] an host file to fight again advertisement

Post#5 by tb01 » 29 Apr 2014, 17:12

blablotin wrote: ...go to http://www.adzhosts.fr/ and download the last built of AdZHosts...
...http://kosvocore.free.fr/AdZHosts/adzhosts.sh...
Links broken -- updates?

Used to do this in WinXP, (so very) many moons ago, using info from [ http://winhelp2002.mvps.org/hosts2.htm ].

Q1. Would I need to do anything special for use in Porteus 3.0 x64 (beyond clean formatting CR/LF)?

Q2. I remember that by the time I had effective ad & malware control, this process -really- slowed XP web browsing. Web research indicated time lag due to reading huge hosts file prior to each outbound request. Should I expect same slow-down under Porteus?

Thanks in advance!
--tb01

.

User avatar
wread
Module Guard
Module Guard
Posts: 1256
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: [How to] an host file to fight again advertisement

Post#6 by wread » 30 Apr 2014, 02:20

I use Privoxy as posted in this forum last year. Put "privoxy" in the search box to see the details...

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

tb01
White ninja
White ninja
Posts: 12
Joined: 23 Aug 2012, 16:42
Distribution: P-MATE (all) x32/x64, debian
Location: -happydale-

Re: [How to] an host file to fight again advertisement

Post#7 by tb01 » 01 May 2014, 01:10

wread wrote:I use Privoxy as posted in this forum last year. Put "privoxy" in the search box to see the details...

Regards!
Thanks for your response. I'm sure you meant well, but I get a '404' error page, not a search box & not in English. Further, I don't know what 'privoxy' might entail (guessing 'privacy-proxy'?). What I -really- need is answers to Q1 & Q2 from my post above. Might anyone here have that info?

Using info from [ http://winhelp2002.mvps.org/hosts2.htm ]:

Q1. Would I need more than line-ending format cleanup?

Q2. Should I expect hosts-file blocking to slow browsing under Porteus 3.0 x32/x64?

Thanks in advance!
--tb01

.
Consider being the change you wish to see in our world...

User avatar
Ed_P
Contributor
Contributor
Posts: 8578
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: [How to] an host file to fight again advertisement

Post#8 by Ed_P » 01 May 2014, 02:34

You appear to have a trouble understanding English tb01. So let me try to interrupt what wread posted to you.

At the top of these webpages in the upper right corner is a white box with the word Search in it. In the box enter the letters "privoxy" then click on the button next to it labeled Search. This will result in a new webpage of all the postings here with the word "privoxy" in them. Scroll down until you get to this one: http://forum.porteus.org/viewtopic.php? ... oxy#p17882

A1. No this is not the same as the old Windows hosts file method to reduce webpage ads. Windows XP has expired and so has this method.

A2. Don't know. Try it and find out.

Post Reply