How to Block a Website ?
Some times it becomes necessary to block a website on our Computers for one or other reason. You can easily and effectivily block access to a website by adding it to your Windows HOSTS file. Once the website is blocked in the HOSTS file, it will not appear in any of the browsers. That is, the website becomes completely unavailable.
1. Go to your HOSTS file which is located at:
C:\WINNT\SYSTEM32\DRIVERS\ETC for Win 2000
C:\WINDOWS for Windows 98 and ME
2. Open HOSTS with Notepad.
The default Windows HOSTS looks like this:
______________________
# Copyright © 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a “#” symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#
127.0.0.1 localhost
_____________________________
3. Directly under the line that says 127.0.0.1 Localhost, you will want to type:
127.0.0.1 name of the URL you want to block
For example to block the website MySpace.com, simply type:
127.0.0.1 www.myspace.com
Other parts of MySpace could be blocked in a similar way:
127.0.0.1 profile.myspace.com
etc etc etc…
It is necessary to add a website with and without the “www.”. You can add any number of websites to this list.
4. Close Notepad and answer “Yes” when prompted.
5. After blocking the website, test it in any of the browser. If every thing is done as said above,the website must not appear in any of the web browsers. You should see a Cannot find server or DNS Error saying: “The page cannot be displayed”. I have also created a virus to block a website which automatically blocks a list of websites as specified in the source program.
Some people suggest that your add a website to the Internet Explorer ‘Privacy’ settings. This does not block a site. It only stops that site from using cookies.
Popularity: 3% [?]
Visitors who read this post, also read:
By using/following this site you agree to our Legal Disclaimer


thanks bro..! can you give names of some harmful website that harms our computer security?
@ Himanshu
Most of the porn sites and crack sites hurts your computer security & privacy…
very gud piece of info…keep up the gud work dude…
hmm… just a thought… if i pinged the site, would it work? answer: no. i think…
and if i typed in the site’s ip address in the address bar, or some other obfuscated way of changing a website’s name, will it work? i dont think this hack would work then…
anyways. nice hack. love the site…
i m block its doing good but when i m erase that name after that the site still doesnt work
hooooooooooo its work when i restart the computer goo dtrick thanks bro
@ jatin
Restart and try. It should work!
can u tell me how to unblok a site 4m mah coleg ,,
actually d problm is i m able to unblock the site but they also block the files to download…. tat by extension..
i.e. .mpg4,.mp3….. ect r blok 4 downloding .whenever i click to download .an error occure in web page ..tat of hosting n all..
but all oder extnsion get downlodeded expt mp4,mp4 ..
plz hlp
i have tried to do this with my vista and it’s not working. everytime i type in the website like you say to .. i don’t get a “yes” prompt i get a “save, don’t save and cancel” prompt… when i click “save ” another window opens and says.. “can not create the C:\Windows\Systems32\drivers\ect\hosts file.”
and then it takes me to another thing.
what am i doing wrong?
i did it exactly like it says to on this site. but i never get the “yes” prompt.
thanks
melissa
@ melissa
Plz check the following.
1. Login as an administrator and ensure that you have full rights to modify the file.
2. Also make sure that the file is not read-only.
Hi,
I did followed all the steps what you said but after the 4th step i.e ” 4. Close Notepad and answer “Yes” when prompted” I clicked yes when prompted but it gave a message “Make sure file name & path is correct.
The file is read only attribute.Use different file name.” What’s the reason?
@RVM
before modifying the hosts file, right click on it, goto properties and uncheck the option Read-Only. Then follow all the steps.
it’s not working…
i’m using a proxy server…
is it a problem???
do u know abt “host redirection”???
i also tried this…
but it’s not working…
help me…
how to create virus for blocking sites using batch file…….???
is it possible to hack anybodies database IP without using any SOFTWARE ?
I followed all steps and closed in notepad.before doing so,I right clicked on host went to prop and made sure it wasn’t set to read only and I got the “make sure file name and path is correct”…whtz up? Also,there is more written under the 127… local host numbers.so,where do start to type at?
man gaye yaar kya trick hai
thankx for this great tip
Thanks bro for all info..its all good…sry best….its the best site for hacking…
thanks its working bro
i cant block the website in college hostel system y its connected in college server can i do this
this is the very atteractive site for virus.
i am very impress to this site.
thank
Actually i have tried this .but i can’t save the changes made by me to c\windows\system32\driver\etc.it is asking for administrator permission though i have logged in as administrator oly .what to do
please reply .thanks in advance.
great sirji…………i m big fan of urs
cool work…superb!!
hey,,your site is very useful, i tried it in my pc and it works! thanks srikanth
http://88.225.217.222:8080/ its not working on this site.
hey ,, u r real hero
I have tried to do this with my vista and it’s not working. everytime i type in the website like you say to .. i don’t get a “yes” prompt i get a “save, don’t save and cancel” prompt… when i click “save ” another window opens and says.. “can not create the C:\Windows\Systems32\drivers\ect\hosts file.”
and then it takes me to another thing.
what am i doing wrong? I also checked the admin rights.
i did it exactly like it says to on this site. but i never get the “yes” prompt.
@ SAM
You need to take ownership of the “hosts” file before you can edit it. So is this problem
I figured out how to do it…
Thanks, it was really helping
i don’t understand how to do it
bro, the link http://183.87.1.218 cannot be blocked
I tried many ways
all other links specified is blocked fine with this trick except the above specified one
I need to block that too
any ways to block it ??
help me bro…
thanks for your informative work…keep this doing
I whole-heartedly appreciate your work
Hey man thanks for sharing such a good knowledge….
please can u tell me how can i unblock the site which i have been blocked by this method???
@ Harsh
To unblock, just delete the lines that you’ve added previously!
Leave your response!
EMAIL SECURITY »
What to Do When Your Email Account is Hacked?
How to Recover Hacked Email Accounts?
It can be a real nightmare if someone hacks and takes control of your email account as it may contain confidential information like bank logins, credit card details and other sensitive data. …
HOW-TO GUIDES »
Cell Phone Lookup: How to Do a Reverse Cell Phone Lookup
A Reverse Cell Phone Lookup is simply a process of finding someone’s personal details such as name, age, address and related information by using their cell phone number. At times it becomes necessary for us to start investigating …
INTERNET SECURITY »
How to Detect Anonymous IP Addresses
As the fraudsters are now becoming more sophisticated in bypassing the Geo-location controls by using proxies (Anonymous IPs) to spoof their IP address, it has become very much necessary to come up with a means …
NETWORK HACKS »
How to Hack an Ethernet ADSL Router
Almost half of the Internet users across the globe use ADSL routers/modems to connect to the Internet however, most of them are unaware of the fact that it has a serious vulnerability which can easily be exploited even by a …
VIRUS CREATION »
How to Test the Working of your Antivirus – EICAR Test
Have you ever wondered how to test your Antivirus software to ensure it’s proper working? Well here is a quick and easy way to test your antivirus. The process is called EICAR test which will …
Categories
Blogroll
Recent Comments
Most Commented
Most Popular
Log In | Entries (RSS) | Comments (RSS) | Sitemap