Go Back   Computer Forums > General Computing > Networking | DNS
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-13-2010, 01:16 PM   #1
Solid State Member
 
Join Date: Apr 2010
Posts: 7
Send a message via MSN to kalmer
Default Block a website

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)
__________________

kalmer is offline   Reply With Quote
Old 04-13-2010, 01:49 PM   #2
Solid State Member
 
Join Date: Apr 2010
Posts: 20
Default Re: Block a website

for let the first line be

127.0.0.1 localhost

and in the next line

type

127.0.0.1 google.com
__________________

maxxx5 is offline   Reply With Quote
Old 04-13-2010, 02:09 PM   #3
Solid State Member
 
Join Date: Apr 2010
Posts: 7
Send a message via MSN to kalmer
Default Re: Block a website

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?
kalmer is offline   Reply With Quote
Old 04-13-2010, 02:19 PM   #4
Solid State Member
 
Join Date: Apr 2010
Posts: 20
Default Re: Block a website

hmm so in next line type,

127.0.0.1 www.google.com (previous without www and this with www)
maxxx5 is offline   Reply With Quote
Old 04-13-2010, 03:41 PM   #5
Solid State Member
 
Join Date: Apr 2010
Posts: 7
Send a message via MSN to kalmer
Default Re: Block a website

Thanks, but this works few minutes and I can still use this site... Is it somehow possible to block sites inside the router?
kalmer is offline   Reply With Quote
Old 04-14-2010, 01:14 AM   #6
Solid State Member
 
Join Date: Apr 2010
Posts: 20
Default Re: Block a website

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.
maxxx5 is offline   Reply With Quote
Old 04-14-2010, 07:46 AM   #7
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Block a website

You probably have to include the IP address of the website as well.
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 04-18-2010, 08:35 AM   #8
Solid State Member
 
Join Date: Apr 2010
Posts: 7
Send a message via MSN to kalmer
Default Re: Block a website

I'm using static IP
but how can I get a website IP?
kalmer is offline   Reply With Quote
Old 04-18-2010, 09:06 AM   #9
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Block a website

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.
j03 is offline   Reply With Quote
Old 04-18-2010, 09:07 AM   #10
Golden Master
 
Join Date: Mar 2005
Posts: 13,091
Default Re: Block a website

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
__________________

lhuser is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0