Hack Forums
How to block sites - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: How to block sites (/showthread.php?tid=2336927)



How to block sites - -MaTaN- - Mar 25, 2012

step 1 : go to here : C:\Windows\System32\drivers\etc

step 2 : open the "hosts" with notepad.

step 3 : then write example :

Code
127.0.0.1       www.site.com

now, you will see that site like blank or no view..



* - Mr. Trazy - Oct 5, 2012

Bro this is not working!! where to write (127.0.0.1 www.site.com)


* - BlueRey - Oct 5, 2012

(Oct 5, 2012 05:02 AM)Mr. Trazy Wrote:  Bro this is not working!! where to write (127.0.0.1 www.site.com)
make sure you put 127.0.0.1 www.site.com


* - HACKER-FUN - Oct 5, 2012

it's not working bro
I can't save the file


* - Mineo - Oct 5, 2012

In order to do this correctly, you need to be the PC administrator or have the permissions of an administrator in order to edit the hosts file.

Why?

Because it is a system file and you can disable your internet if you do something completely wrong.

Make sure you are an administrator if you do this.


* - Ardi22 - Oct 5, 2012

Great tut! :D but i alredy knew this ;P


* - SIM-964740 - Oct 24, 2012

Thank you man, I read this a while ago and now Im reading ot again ;)

PS: I am on my phone ao GN isn't active :P


* - joint56 - Oct 24, 2012

thanks man , i try this on this night...


* - Crosshair5599 - Oct 30, 2012

Just save the .txt file on your desktop. Remove the hosts file, and drag the copy in the directory...


* - SEANoEv0l - Oct 31, 2012

Open Notepad as admin and then drop the file into the notepad window.


* - ZeusGod13 - Oct 31, 2012

well only the main page gets blocked you can access other pages of the site via bookmarks :/


* - sam2011hacker - Oct 31, 2012

very old trick and works perfect. M using this from many months. I myself blocked about 7 games sites. Basically what we need to do is
Quote:1- First open notepad with administrator rights. (you can do that by right clicking on notepad and click run as administrator)
2- Now type 127.0.0.1 www.google.com (atleast 1 space is required between the ip and website )
3- now save it and reboot
4- try to open google.com, you will see its blocked
5- now instead of google type any site you want to block. Done now enjoy



(Oct 31, 2012 12:04 AM)ZeusGod13 Wrote:  well only the main page gets blocked you can access other pages of the site via bookmarks :/

you just need to find other pages it uses and then block them also. you need to block subdomains also. i know its tough job. So i tell you a software download HT employee monitor it helps you to block the whole site. The only problem is that its a 30 days trial version


* - szzer - Oct 31, 2012

This is how you can do it from cmd
1 run cmd as admin
2 go to cd windows/system32/drivers/etc
3 etc> copy con hosts
now type 127.0.0.1 www.site.com
then it will ask for overwrite
type yes
then press ctrl+c and enter
4 exit