PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 12:01:14 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Tracking and add blocking  (Read 925 times)
dmt
Jr. Member
**
Offline Offline

Posts: 12


« on: April 04, 2011, 01:27:45 PM »

Hi all

Just thought I would share this.

There is a site that keeps an extensive list of dodgy sites that track and place adds and whatever.

The url is http://someonewhocares.org/hosts/

The list is updated on a regular basis and you can download it as a text file to easily place within the /etc/hosts file.

cheers
Logged
lightning slinger
Full Member
***
Offline Offline

Posts: 110



« Reply #1 on: April 04, 2011, 02:08:46 PM »

Been using the MSVP hostsfile at http://www.mvps.org/winhelp2002/hosts.htm or sometimes the hphostsfile at http://www.hosts-file.net/ for years. Because as well as keeping the crap sites off limits and the adware cookies also, I'm sure it's a faster solution than the adblock plugins in both Firefox and Opera.
Only thing to note is once the file is downloaded in text form it has to be renamed hosts. Must also be root to copy the file to /etc/hosts
Logged

dmt
Jr. Member
**
Offline Offline

Posts: 12


« Reply #2 on: April 04, 2011, 02:54:15 PM »

@ lightning slinger

Thanks for sharing - I didnt know about the http://www.mvps.org/winhelp2002/hosts.htm or the hphosts site.

Yeah I know you have to root.  Bit blase of me - sorry Wink
Logged
scoundrel
Administrator
Hero Member
*****
Offline Offline

Posts: 3662


Philosophy= Bigger Hammer


« Reply #3 on: April 04, 2011, 06:19:44 PM »

Been using the MSVP hostsfile at http://www.mvps.org/winhelp2002/hosts.htm or sometimes the hphostsfile at http://www.hosts-file.net/ for years. Because as well as keeping the crap sites off limits and the adware cookies also, I'm sure it's a faster solution than the adblock plugins in both Firefox and Opera.
Only thing to note is once the file is downloaded in text form it has to be renamed hosts. Must also be root to copy the file to /etc/hosts


downloaded it as a text file renamed it "hosts" and copy to /etc/hosts ..right ?  but I see every ad out there ?? even tried a reboot  Grin
Logged


Please Donate Today..Or I Will Make You Wish You Had
lightning slinger
Full Member
***
Offline Offline

Posts: 110



« Reply #4 on: April 06, 2011, 07:39:37 AM »

The MSVP host file and the hphosts file are general hosts file which include porn sites,malware sites, tracking cookies and adservers. However there are more specific hosts file, eg. http://pgl.yoyo.org/as/ which concentrate on adservers but these two have been general enough in the past at cutting out the main stuff I don't want to see!
Logged

vc
Hero Member
*****
Offline Offline

Posts: 523


« Reply #5 on: September 09, 2011, 07:31:59 PM »

Hello - how may I block one specific IP address, please?  I've tried iptables -I FORWARD -d 192.168.1.210 -j DROP (as root) and have also added the same IP to the etc/hosts.deny file (also as root) as well, yet even after a full reboot iftop reports the address as still active.  Frustrating - how may I block that address from having any access to my machine at all?
Logged
YouCanToo
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4251


Location: Lebanon, OR., USA


WWW
« Reply #6 on: September 09, 2011, 08:41:58 PM »

Hello - how may I block one specific IP address, please?  I've tried iptables -I FORWARD -d 192.168.1.210 -j DROP (as root) and have also added the same IP to the etc/hosts.deny file (also as root) as well, yet even after a full reboot iftop reports the address as still active.  Frustrating - how may I block that address from having any access to my machine at all?

Well I wouldn't of used that rule set, I would of used this

iptables -I INPUT -s 192.168.1.210 -j DROP


Replace the IP above address with the IP that you want to block.
Of course remember that you need to restart the iptables service before it will take effect. You can do this by opening a console window as root and issue the command

Code:

service iptables restart

Logged





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!
vc
Hero Member
*****
Offline Offline

Posts: 523


« Reply #7 on: September 10, 2011, 12:05:01 AM »

Seems to have not been successful, unfortunately - iftop is still reporting the undesired access.  Thanks, though:

http://i.imgur.com/RwftX.png

edit:  I've now added the offending IP address to /etc/shorewall/blacklist, and then issued a shorewall restart command (both as root) - yet still no luck.  I'll try rebooting now.
Logged
YouCanToo
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4251


Location: Lebanon, OR., USA


WWW
« Reply #8 on: September 15, 2011, 12:14:38 AM »

Seems to have not been successful, unfortunately - iftop is still reporting the undesired access.  Thanks, though:

http://i.imgur.com/RwftX.png

edit:  I've now added the offending IP address to /etc/shorewall/blacklist, and then issued a shorewall restart command (both as root) - yet still no luck.  I'll try rebooting now.


Open a console window and enter the following

ifconfig

copy and paste that information please.
Logged





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM