Author Topic: Tracking and add blocking  (Read 1322 times)

Offline dmt

  • Jr. Member
  • **
  • Posts: 21
Tracking and add blocking
« on: April 04, 2011, 12: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

Offline lightning slinger

  • Full Member
  • ***
  • Posts: 110
Re: Tracking and add blocking
« Reply #1 on: April 04, 2011, 01: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
« Last Edit: April 04, 2011, 01:16:19 PM by lightning slinger »

Offline dmt

  • Jr. Member
  • **
  • Posts: 21
Re: Tracking and add blocking
« Reply #2 on: April 04, 2011, 01: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 ;)

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4504
  • Philosophy= Bigger Hammer
Re: Tracking and add blocking
« Reply #3 on: April 04, 2011, 05: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  ;D
Please Donate Today..Or I Will Make You Wish You Had

Offline lightning slinger

  • Full Member
  • ***
  • Posts: 110
Re: Tracking and add blocking
« Reply #4 on: April 06, 2011, 06: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!

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: Tracking and add blocking
« Reply #5 on: September 09, 2011, 06: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?
« Last Edit: September 09, 2011, 06:34:44 PM by vc »

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Tracking and add blocking
« Reply #6 on: September 09, 2011, 07: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: [Select]

service iptables restart





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: Tracking and add blocking
« Reply #7 on: September 09, 2011, 11:05:01 PM »
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.
« Last Edit: September 10, 2011, 04:03:58 PM by vc »

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Tracking and add blocking
« Reply #8 on: September 14, 2011, 11:14:38 PM »
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.




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!