Jan 192009

Well many of you wants you wants to block any webiste from your computer either for children saftey or for blocking any software from getting black-listed, then here are simple and few steps to do it:

block_anywebsite

Before continuing let me tell how it works, well Microsoft Windows uses HOSTS file located in [%systemdrive%/windows/system32/drivers/etc] to maintain a personal list of web addresses. Any time a request is made for a URL, the HOSTS file will be checked first. If a corresponding address is found you will be directed to that IP without first consulting a DNS Server. The original intent of this file was to define where sites exist; we will use it in this context to define where they don’t exist.

STEPS:

  • Type [C:WINDOWSsystem32driversetc] in your adress bar and press enter key, you will be directed to home directory of HOSTS file

Directory of HOSTS File

  • Right Click and open the “hosts file” with notepad.

OpenWith

  • By default your host file will look like the screen-shot below.

Default

  • Now in the screenshot below, 192.168.15.1 is the default address of my router, when the user/application will try to access the blocked site, it will be redirected to this IP rather than going to the original website. Note that IP [192.168.15.1] is followed by the name of the website you want to block. Here i blocked the official website of Internet Download Manager, so that IDM may not able to blacklist my key. [Obviously its valid if you are using a pirated fake key].

After Adding Sites

  • Well here you go, you can add as many websited you want to block in the list like above.
  • Now its the time to test that the tricked worked or not???
  • Type [http://www.internetdownloadmanager.com] in your address bar and see what happens

Testing

  • So the page redirected to my router’s login page instead of going to http://www.internetdownloadmanager.com
  • NOTE: ONCE SITE IS BLOCKED THROUGH THIS METHOD, NO BROWSER, NO APPLICATION OR ANY OTHER MEDIA CAN ACCESS THE BLOKED WEBSITE.
  • I have tested it in Mozilla Firefox, Google Chrome and Internet Explorer 6,7. All of the browsers were re-directed to my router’s login page rather than going to the original website.

12 Responses to “How To Block Any Website Without Using Any Software”

Comments (12)
  1. khurram says:

    I have edit the host file and chage it as the process mantion but it is not work plz tell any other solution

  2. Bilal Bhatti says:

    @khurram, Restart your system…

  3. honey says:

    how can i register idm download manager without buying plz help me

  4. Huzaifa says:

    I also tried and it doesnt work………..

  5. Rohit Kumar says:

    I have edit the host file and chage it as the process mantion but it is not work plz tell any other solution

  6. Ehsan karim says:

    Thanks a lot. it worked well.

  7. Ehsan karim says:

    thanks it was very help full infact

  8. Ryan says:

    Does this work in Windows 7? I couldn’t get it working there. . .

  9. Carlos says:

    this does not seem to be working for me. do i have to type in your IP address or can i use yours? Please reply back soon

  10. bor says:

    i cant block http://88.225.217.222:8080/ this adress. its not working

  11. stefan says:

    doesnt work with google chrome. firefox no problem

  12. Mrsh says:

    How about Mac?? I really need to block FaceBook from Google Chrome for Mac. It’s been distracting me.

Leave a Reply

(required)

(required)