The BLOCKER

BLOCK

This word has a great meaning to both good people and bad people. But actually GOOD people are afraid of this word and BAD people LIKE this word.
So now today's blog is about the BLOCKING. What if you block your friend's PC's WEB access for just a pranck, in just a 15 sec. 
So look at how this works 

Type this following code into your notepad and SAVE it as .bat file


@Echo off
ipconfig /release

So now the question comes how this works. Well when the file is executed the PC looses it IP and hece cannot connect to the INTERNET

*But how will you resolve it here is the solution

Just type this code given below in the cmd and hence it gets solved

ipconfig /renew



But now this is just a temporary what if you are able to block the SITES

Here I would take a simple example of blocking FACEBOOK
So,

1. Go to Start > Programmes > Accesories
2. Then Right click on Notepad and Run it as administrator.
3. Now navigate to File > Open and locate to following address

C:\WINDOWS\system32\drivers\etc


4. Now just OPEN the "host" file
5. Then just below # 127.0.0.1 localhost paste folowing code

# Blocking Facebook
127.0.0.1 login.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 blog.facebook.com

6.  Now save the host file and done.
7. Open any browser and try to open facebook. It won't open. If facebook opens then you might have done somthing wrong.


______________________________________________________________________________

If you want to block website other then FACEBOOK then change FACEBOOK address with whatever website you want to block. For example: to block GOOGLE paste following code below # 127.0.0.1 localhost


# block google
127.0.0.1 www.google.com




Hope you like it Please do comment


Comments

Popular Posts