Saturday, October 6, 2007

Internet Tweaks... Blockin IP address

In this post, lets see how to block IP address to play a prank or to increase bandwidth..

The Hosts file cont ains the mappings of IP addresses to host names. This file is loaded into memory (cache) at startup, then Windows checks the Hosts file before it queries any DNS servers, which enables it to override addresses in the DNS. This prevents access to the listed sites by redirecting any connection attempts back to the local machine. Another feature of the HOSTS file is its ability to block other applications from connecting to the Internet, providing the entry exists.

Now how to use the hosts file efficiently..

  • go to C:\WINDOWS\system32\drivers\etc and you can find a file named hosts
  • open the hosts file using notepad or any other text editors

Now how to play using this hosts file...

A typical hosts file looks like the one on the left..

To block an ip:

To block IP's of Advertisement agencies just type 127.0.0.1 followed by the domain name. In this picture , i have blocked ads like www.doubleclick.net as explained using the above procedure. The ip address of 127.0.0.1 is called a loop back address. It just represents your own computer over the internet. Thus by filtering these kinds of ads, you can easily increase your bandwidths.

To play a prank:

Its very easy to play a prank, all you need is to find ip address of the website which you need to be redirected for eg: if u want your browser such that when you type www.hotmail.com and get redirected to www.google.com, you need to find ip of www.google.com by using ping command. Run cmd and type ping www.google.com , you will get the ip of Google. Now type the ip address of Google in the left followed by the domain name which you want to be redirected. In the above picture, i have redirected my browser from www.hotmail.com to www.google.com 64.233.189.104 is the ip of Google.


NOTE : YOU HAVE TO SHUTDOWN THE BROWSER AND REOPEN FOR THE CHANGES TO TAKE PLACE

6 comments:

Anonymous said...

nice one there man...

Vijesh said...

ping google.com
ping www.google.com
ping google.com

Why does the ip changes? So your prank can fail!

now try
nslookup google.com

surya said...

ya in this case it can....but you can define the same for all the ip address..no other go :(

Kausthub said...

good 1 dude

Vijesh said...

even still it can be done.. find out how????

surya said...

@vijesh : I tried googling but i dint find it... :)
can u tell me how?