Author |
Message |
sc0ttman

Joined: 16 Sep 2009 Posts: 2572 Location: UK
|
Posted: Sun 14 Aug 2011, 11:44 Post subject:
|
|
I've updated this tool a bit since it was included in Woof, nothing major but its faster.. I have also recentlty i18n'd (internationalised) it, so the GUI can be available in a number of languages.
Translations of the following english .mo file are welcome (I think its better to start getting real translations, rather than keep posting crap trans-Google-lations, as they are [apparently] more or less incomprehensible!)
Code: | # english
Loc_no_ads_selected="No ad lists selected. Ad blocking will be disabled."
Loc_success="Success - your settings have been changed.\n\nYour hosts file has been updated."
Loc_start_btn="Start"
Loc_start_btn_tt="Click to download and then block a list of advertising servers"
Loc_edit_btn="Edit"
Loc_edit_btn_tt="Manually edit your hosts file in a text editor, adding or removing any entries you like"
Loc_quit_btn="Quit"
Loc_quit_btn_tt="Exit or Cancel"
Loc_help_btn="Help"
Loc_help_btn_tt="Learn more about blocking and disabling online adverts"
Loc_help1="The $title tool adds stuff to your '/etc/hosts' file, so that many advertising servers and websites will not be able to connect to this PC."
Loc_help2="Leave your cursor over a service to see a short description. You can choose one service or combine multiple services for more advert protection."
Loc_help3="Blocking ad servers protects your privacy, saves you bandwidth, greatly improves web-browsing speeds and makes the internet much less annoying in general."
Loc_howto="Leave your cursor over a service to see a short description. You can choose one service or combine multiple services for more advert protection."
Loc_summary="Block online ads in all browsers with this simple tool"
Loc_choose_service="Choose your preferred ad blocking services"
Loc_mvps_desc="Blocks a very large number of malware sites and unsafe adult networks"
Loc_systcl_desc="A large, fairly comprehensive list of many known ad servers"
Loc_technobeta_desc="A smaller list of popup adverts, ad servers and ad networks"
Loc_yoyo_desc="A small and effective list of very popular ad servers"
Loc_start="Click '${Loc_start_btn}' to block the selected ad servers"
Loc_edit="Click '${Loc_edit_btn}' to edit the hosts file" |
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
Back to top
|
|
 |
stiginge

Joined: 22 Mar 2007 Posts: 420 Location: Kerry, Ireland
|
Posted: Wed 19 Oct 2011, 11:17 Post subject:
|
|
One quick question, does the program automatically run when computer in rebooted? Or does it have to be run every time on bootup? I'm using 529 and there a shortcut from the jwm launch tray.
_________________ Buy silver, crash JPMorgan
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 2031 Location: Israel, somewhere in the beautiful desert
|
Posted: Wed 19 Oct 2011, 12:04 Post subject:
|
|
You need to run it just once. The best way to see whether it worked is the length of /etc/hosts - should be thousands of lines
_________________ My homepage
My GitHub profile
|
Back to top
|
|
 |
Sadi
Joined: 09 Apr 2012 Posts: 1
|
Posted: Mon 09 Apr 2012, 08:24 Post subject:
Advert-Blocker 0.5 Subject description: Hosts Manager |
|
Great work!!!
This is the closest thing I've found in the Linux world to this Windows Hosts Manager: www.abelhadigital.com/hostsman
Missing features are:
(1) Automatic updates (e.g. option to put a commandline version in /etc/cron.weekly or /etc/cron.monthly after configuration from the GUI control centre)
(2) Custom inclusion and exclusion lists (may be called hosts-user-allow and hosts-user-deny instead of black or white lists for political correctness
(3) Possibility to add more online sources
I think it shouldn't be too difficult to add these.
And then I would wish I could also have a distro-independent version (replacing gtkdialog3 with zenity perhaps)
Kind regards,
Sadi
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 1268
|
Posted: Tue 08 Jan 2013, 12:15 Post subject:
|
|
I was wondering... Are there any lists that can be added to PupAdvertBlocker so that it also blocks adult sites? Most adult content blockers work with keywords, that's horrible because for example you can open your email box or your favourite social network and get it suddenly closed by an adult content warning, this makes surfing the web very awkward.
_________________ Puppy Linux en español
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4786 Location: Kingwood, TX
|
Posted: Tue 08 Jan 2013, 16:25 Post subject:
|
|
The only one I would recommend due to licensing issues with the rest is:
http://dsi.ut-capitole.fr/blacklists/download/
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
OscarTalks

Joined: 05 Feb 2012 Posts: 1732 Location: London, England
|
Posted: Sat 22 Feb 2014, 10:44 Post subject:
|
|
@ scOttman
Are you still supporting this?
Anyway, with some help from Terryphi I was looking at this recently. Looks like the Technobeta service is dead so I removed it. Also the format of the Mvps list is now modified so some changes are needed to the code otherwise it has no effect (the whole list downloads but ends up getting totally deleted).
With the modifications I have made so far the Mvps list works, or you can combine it with the other two for a longer hosts lists (with duplicates removed) for maximum blocking.
I will upload what I have as "version 0.5b" here:-
http://smokey01.com/OscarTalks/pup-advert-blocker-0.5b.pet
but I know very little about coding so someone may wish to make corrections or improvements.
Seems like Woof and Woof-CE still have an old version 0.3 which really could do with being looked at.
Description |
Slightly modified GUI |
Filesize |
75.27 KB |
Viewed |
913 Time(s) |

|
Description |
Hosts file with all 3 lists selected - note the number of lines |
Filesize |
61.65 KB |
Viewed |
913 Time(s) |

|
_________________ Oscar in England

|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Sat 22 Feb 2014, 11:32 Post subject:
|
|
Barry has included the pup-advert-blocker into Woof - now in Woof-CE.
Would be great if we could join our effort there
https://github.com/puppylinux-woof-CE/woof-CE/blob/testing/woof-code/rootfs-skeleton/usr/sbin/pup-advert-blocker
Description |
|
Filesize |
32.53 KB |
Viewed |
994 Time(s) |

|
_________________ Stardust resources
|
Back to top
|
|
 |
OscarTalks

Joined: 05 Feb 2012 Posts: 1732 Location: London, England
|
Posted: Thu 01 May 2014, 10:26 Post subject:
|
|
I have uploaded a couple of new versions of the advert blocker to
http://smokey01.com/OscarTalks
as well as here.
All of the above fixes plus I have corrected the long-standing typo
It only affected the labels, not the functions, but...
systcl should be sysctl
There is a version 0.3b-woofce which is for Slacko 5.7 or later using Zigbert's nice new GUI
For Puppies earlier than that, use the version 0.5b
Description |
For Puppies earlier than Slacko 5.7
|

Download |
Filename |
pup-advert-blocker-0.5b.pet |
Filesize |
4.48 KB |
Downloaded |
314 Time(s) |
Description |
For Slacko 5.7 or later Woof-CE Pups
|

Download |
Filename |
pup-advert-blocker-0.3b-woofce.pet |
Filesize |
3.07 KB |
Downloaded |
263 Time(s) |
_________________ Oscar in England

|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Thu 19 Jun 2014, 07:30 Post subject:
|
|
Oscar, this is in the woof structure so I have updated it. Thanks. ziggy will be happy that is gtkdialog libraries are gaining acceptance.
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4786 Location: Kingwood, TX
|
Posted: Thu 10 Jul 2014, 22:49 Post subject:
|
|
fyi - if you want to run an app (wget for instance) with on a blocked site you can do this:
Code: | sed -i "s/hosts:\t\tfiles /hosts:\t\t/g" /etc/nsswitch.conf
wget -t 0 -q --no-dns-cache $HOST$FULL
sed -i "s/hosts:\t\t/hosts:\t\tfiles /g" /etc/nsswitch.conf |
or you can modify resolve.conf or temporarily swap the /etc/hosts file with a blank one
(I used this technique in my shell based proxy server so that all my different browsers could use the same local cache...) ... but you could also extend it to block sites for your kids and use one of these techniques with a password to temporarily override it (I'd recommend the swapping technique for this so ads could still be blocked)
I recommend this set:
ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz
from: http://dsi.ut-capitole.fr/blacklists/index_en.php
it is split into the following
Category
adult
agressif
audio-video
blog
cleaning
dangerous_material
drogue
financial
forums
gambling
hacking
liste_bu
mobile-phone
phishing
publicite
radio
redirector
strict_redirector
strong_redirector
tricheur
warez
webmail
games
educational_games
mixed_adult
filehosting
reaffected
sexual_education
shopping
dating
marketingware
astrology
sect
celebrity
manga
child
malware
press
chat
remote-control
social_networks
jobsearch
sports
bank
arjel
cooking
lingerie
translation
bitcoin
dialer
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
stray_dog
Joined: 18 Mar 2014 Posts: 66
|
Posted: Thu 06 Nov 2014, 20:08 Post subject:
|
|
Wow, guys - thank you for continuing this conversation. It really confused me a while ago when I tried to check-mark all four options and the advert blocker would hang & not complete as a gui. It took a while to figure out that technobeta had gone down and not to check it. I really like the changes that have been made & I'm pumped with curiosity to try to add stuff to my hosts file to see what the results are.
|
Back to top
|
|
 |
riedzig
Joined: 01 Oct 2015 Posts: 30
|
Posted: Tue 25 Oct 2016, 02:50 Post subject:
Avoid displaying windows like "Unable to connect" |
|
Many thanks for this nice tool which learned me how to work with the hosts file. I have one question: is in firefox settings possible to get rid of those numerous windows like "Unable to connect..."
|
Back to top
|
|
 |
watchdog
Joined: 28 Sep 2012 Posts: 1558 Location: Italy
|
Posted: Fri 09 Jun 2017, 23:26 Post subject:
|
|
pup-advert-blocker-p4-2017.pet:
https://drive.google.com/file/d/0B9iMb4UZBeFkQUhPc2lOU0tkYUU/view?usp=sharing
|
Back to top
|
|
 |
|