Adblock breaks this site

How to block most ads and malware sites!

Discussion in 'Guides' started by The Black Tux, Sep 4, 2011.

  1. The Black Tux

    The Black Tux Veteran
    The Black Tux Donor Java Programmers PHP Programmers

    Joined:
    Apr 19, 2009
    Posts:
    10,306
    Referrals:
    30
    Sythe Gold:
    55
    Vouch Thread:
    Click Here
    Two Factor Authentication User Cool Kid Former OMM Cook RsProd Sythe Awards 2012 Winner Village Drunk
    How to block most ads and malware sites!

    How to block most ads & some malware sites.

    1. Introduction

      In this guide I will teach you how to block most of the sites that provide the ads and a few detected servers around the world that distribute malware using the hosts found at mvps.org in Windows ; I will teach you how to setup it and check if it's working once you are done. This might be a simple guide, but a very useful one. Note: I will post the location of the hosts file for Linux and Mac, you can follow the guide using the programs of you operating system.

    2. Understanding how it works
      • Host File:

        "The hosts file is a computer file used in an operating system to map hostnames to IP addresses. The hosts file is a plain-text file and is traditionally named hosts." From Wikipedia.org

        "The Hosts file contains the mappings of IP addresses to host names. This file is loaded into memory (cache) at startup, then Windows checks the Hosts file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the local (your) machine. Another feature of the HOSTS file is its ability to block other applications from connecting to the Internet, providing the entry exists.

        You can use a HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers. This is accomplished by blocking the connection(s) that supplies these little gems"
        From mvps.org

      • Location of the hosts file:
        • Linux: /etc/hosts
        • Windows: %SystemRoot%\system32\drivers\etc\
        • Mac OS X: /private/etc/hosts

        [​IMG]

      • Editing hosts file: You must use Administrator/root privileges, and just use a text editor.

        [​IMG]

    3. Getting the hosts

      We'll be using the plain text file provided by mvps.org at http://www.mvps.org/winhelp2002/hosts.txt

      You must copy from
      Code:
      #start of lines added by WinHelp2002
      # [Misc A - Z]
      [​IMG]

      To the end of the file

      [​IMG]

      You can now save the file!

      [​IMG]

    4. Checking it works!
      We must now ping any address that it's on the file. Type this on cmd/terminal/ssh
      Code:
      ping images.adster.com
      It should show something like this:
      [​IMG]

    Enjoy 0.00001% ads browsing with more malware protection!

    Thanks for reading!
     
  2. Egu

    Egu Guru
    Banned

    Joined:
    Jun 18, 2011
    Posts:
    1,151
    Referrals:
    0
    Sythe Gold:
    0
    How to block most ads and malware sites!

    I never knew this. I'm going to try this. Thanks for the share!
     
  3. The Black Tux

    The Black Tux Veteran
    The Black Tux Donor Java Programmers PHP Programmers

    Joined:
    Apr 19, 2009
    Posts:
    10,306
    Referrals:
    30
    Sythe Gold:
    55
    Vouch Thread:
    Click Here
    Two Factor Authentication User Cool Kid Former OMM Cook RsProd Sythe Awards 2012 Winner Village Drunk
    How to block most ads and malware sites!

    Let me know the result ;)
     
  4. Blade

    Blade tfw 2hi lmao
    Retired Sectional Moderator Cracker Head

    Joined:
    Jun 13, 2010
    Posts:
    7,252
    Referrals:
    12
    Sythe Gold:
    233
    Two Factor Authentication User Easter 2015 Valentine's Day 2015 Sythe's 10th Anniversary Christmas 2014 Verified Overwatch Master Halloween 2014 SytheSteamer
    OG Club Detective Pokémon Trainer
    How to block most ads and malware sites!

    Good guide, but unless I'm wrong, this may also potentially block items that could have been wanted, and will become more strenuous for those tasks?

    Anyways, you've put together a good guide.
     
  5. Cold Harmony

    Cold Harmony Active Member

    Joined:
    Feb 3, 2011
    Posts:
    133
    Referrals:
    0
    Sythe Gold:
    0
    How to block most ads and malware sites!

    thanks for the guide! very helpful
     
  6. The Black Tux

    The Black Tux Veteran
    The Black Tux Donor Java Programmers PHP Programmers

    Joined:
    Apr 19, 2009
    Posts:
    10,306
    Referrals:
    30
    Sythe Gold:
    55
    Vouch Thread:
    Click Here
    Two Factor Authentication User Cool Kid Former OMM Cook RsProd Sythe Awards 2012 Winner Village Drunk
    How to block most ads and malware sites!

    It has happened once only for me ^_^ ^_^
     
  7. Blade

    Blade tfw 2hi lmao
    Retired Sectional Moderator Cracker Head

    Joined:
    Jun 13, 2010
    Posts:
    7,252
    Referrals:
    12
    Sythe Gold:
    233
    Two Factor Authentication User Easter 2015 Valentine's Day 2015 Sythe's 10th Anniversary Christmas 2014 Verified Overwatch Master Halloween 2014 SytheSteamer
    OG Club Detective Pokémon Trainer
    How to block most ads and malware sites!

    Well then that's good.
    Other than that, it's quick and simple, nicely put together, has a nice amount of pictures and is a good guide.
    Nice job!:3
     
  8. The Black Tux

    The Black Tux Veteran
    The Black Tux Donor Java Programmers PHP Programmers

    Joined:
    Apr 19, 2009
    Posts:
    10,306
    Referrals:
    30
    Sythe Gold:
    55
    Vouch Thread:
    Click Here
    Two Factor Authentication User Cool Kid Former OMM Cook RsProd Sythe Awards 2012 Winner Village Drunk
    How to block most ads and malware sites!

    Thanks for the comment
     
  9. Blade

    Blade tfw 2hi lmao
    Retired Sectional Moderator Cracker Head

    Joined:
    Jun 13, 2010
    Posts:
    7,252
    Referrals:
    12
    Sythe Gold:
    233
    Two Factor Authentication User Easter 2015 Valentine's Day 2015 Sythe's 10th Anniversary Christmas 2014 Verified Overwatch Master Halloween 2014 SytheSteamer
    OG Club Detective Pokémon Trainer
    How to block most ads and malware sites!

    No problem, look forward to more of your guides in the future:3
     
< Using your text to speech tool on Windows! | [TuT]How to be Anonymous on the Internet >


 
 
Adblock breaks this site