Block a website

kalmer

Solid State Member
Messages
7
Using Windows XP and I want to block one website in all browsers. I found from google tutorial, where I put the sites what I want to block into file C:/windows/system32/drivers/etc/hosts
when I block google for example then:
127.0.0.1 google.com

It doesn't work, because these sites which i've listed are still working properly. Can anybody help?

(hope that this topic is in right place)
 
for let the first line be

127.0.0.1 localhost

and in the next line

type

127.0.0.1 google.com
 
Also doesn't work, it blocked this site for a first use, but when I refresh the page I can still use it. Any ideas?
 
Thanks, but this works few minutes and I can still use this site... Is it somehow possible to block sites inside the router?
 
yours static ip or dynamic ip.

i think wen u type google.com in browser it takes to ur country's domain address

example for india , it redirects us to google.co.in

so if it is like tat include tat address in the file also.
 
You shouldn't need the website IP... Unless i'm missing something.

After you've added that line to your hosts file, run: "ipconfig /flushdns" inside a command prompt window.

If you want to find out the websites IP, you can ping it from a command prompt window:

ping google.com

Would give you something like:

Code:
C:\Users\Joe.REDFERN>ping google.com

Pinging google.com [209.85.229.147] with 32 bytes of data:
Reply from 209.85.229.147: bytes=32 time=25ms TTL=54
Reply from 209.85.229.147: bytes=32 time=24ms TTL=54
Reply from 209.85.229.147: bytes=32 time=41ms TTL=54
Reply from 209.85.229.147: bytes=32 time=25ms TTL=54

Ping statistics for 209.85.229.147:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 24ms, Maximum = 41ms, Average = 28ms

C:\Users\Joe.REDFERN>

Where 209.85.229.147 is one of Google.com's IP addresses.
 
To get an IP from a website, open a command prompt page, and ping the desired website. In the case of Google, it's 72.14.204.13
 
Back
Top Bottom