Go Back   Tutorial Ninjas > TutorialNinjas.net > Tutorials and News
Tutorials and News And get a chance to be recognized on the front page!
Reply
 
LinkBack Thread Tools
Old 07-21-2009, 01:43 AM   #1 (permalink)
FaTe
Ninja Tutorialist
 
FaTe's Avatar
 
Join Date: Sep 2007
Location: Behind You
Posts: 122
Credits: 75
Promos: 0
Send a message via AIM to FaTe
Default [Tutorial] How to block websites on a local Windows computer without a program.

In this tutorial, I am going to show you how to block a website on a local Windows computer so there is no way to access it.

1. Navigate to C:\Windows\System32\drivers\etc using "My Computer"
2. Right click hosts --> Open With --> Notepad
3. You might already see a line at the bottom that looks similar to this...
127.0.0.1 localhost

The first number is an IP address that it will simply redirect to. So if you type localhost in your browser it will look at 127.0.0.1. The second number is the IP/domain you want to redirect. To block a website do the following. I will be using an example of google.com

1. Make a new line at the bottom on the hosts file and type...
Code:
127.0.0.1 google.com
127.0.0.1 www.google.com
Make sure you do BOTH
Code:
google.com AND www.google.com
as they are looked at differently by your browser.
2. Save your file, open your browser, and try to type in the URL. The page should not be found.

I did this trick at work with this girl I work with. She is on MySpace ALL day. So this is what I did...
Code:
"MY_SERVER_IP" myspace.com
"MY_SERVER_IP" www.myspace.com
When she visited myspace.com, it would look at my web server for the website and the website on my web server is coded so the browser would move all over the screen and it says she got a virus on the work computer... I'm such an asshole

This has been tested on Windows XP, I'm not sure how it will cooperate on Vista and Windows 7 with the new security updates. Have fun messing with people!
__________________
-Mike
FaTe is offline   Reply With Quote
Sponsored Links(Sign Up for Free to Hide These!)
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:50 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios