I need a way to ip-block websites.
The reason is simple: Just don't want my bro on certain sites, and to just be mean to him. I know that Peerguardian works but not so great as its HTTP blocking goes blocking sites left and right. Any other alternative?
If it's just websites, probably better to block the DNS than the IP. Simple method is to stick an entry in the hosts file (<system32 dir>\drivers\etc in Windows).
Add a line like this:
Code:
127.0.0.1 blockedsite.com
|
After that, flush your DNS cache (Start » Run » ipconfig /flushdns » Enter).
i love doing that, i use it on my friend whos addicted to youtube...its more fun if you use
Then, whenever they type in the site, they get redirected to google. Its hilarious to watch....
Still doesn't work. I tried both ways. This is my hosts file.
Quote:127.0.0.1 localhost
127.0.0.1 activate.adobe.com
24.28.193.9 meebo.com
no the ip stays 127.0.0.1
Still doesn't work =\ What the hell am I doing wrong? I can still access the site.
Quote:# Copyright © 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 activate.adobe.com
127.0.0.1 meebo.com
not sure if it really matters, but use a tab, not a space
You edited the right file right?
Under .../windows/system32/drivers/etc. should be the "hosts" file, without extension. Not the hosts.msn or hosts.ics or whatever.
Copy/paste these entries to it after the localhost entry.
127.0.0.1
activate.adobe.com
127.0.0.1
meebo.com
Save it as hosts (without any extension)
Oh yeah, and as zinga said, kill your DNS cache. Also kill your temporary internet cache, in case the site got stored into that.
If you did all that correctly, don't know why it wouldn't work. I do that kind of stuff all the time, to block my sister off poo poo like neopets and block random ad sites.