Blocking websites

How to block a few websites on the computer/laptop in such a way so that the users do not know that its blocked

Re: Blocking websites

here

um check this

Re: Blocking websites

when i click on the link it says cant find server :konfused:

Re: Blocking websites

http://www.rak****k.com/blog/2008/05/18/how-to-block-websites-without-using-any-software/

its rak****k.com when u open the link

please fill in the asteriks with S H I T work:hinna:

Re: Blocking websites

^^:omg:

Re: Blocking websites

Click on Start / Run and paste in the following (without the quotes) and enter:

"notepad c:\windows\system32\drivers\etc\hosts"

At the end there would be line looking like this:
127.0.0.1 localhost

On the next line type in the following:
127.0.0.1 www. newwebsite.com

Press enter and save. It will not open that site again.
Make sure to replace www. newwebsite.com with the appropriate website before saving. Let us know if you get sutck somewhere.

EDIT: That other website that K337 posted says the same thing, I just checked.

Re: Blocking websites

this is not working for a few websites & is working for a few :hinna:

any other solution?

Re: Blocking websites

it can't not work! Its a science, not an opinion. Tell us what exactly you're doing.

Re: Blocking websites

^ I think she just needs to keep changing the last IP bit for each line in the file - right? otherwise, as per your instructions, she's mapping the same IP address to different sites.

So the file entries should look something like:

127.0.0.1 localhost
127.0.0.2 www. blockedsite1. com
127.0.0.3 www. blockedsite2. com

and so on...

Re: Blocking websites

no i dont have to change
works without changing.
but as i said it does not work on all websites:hinna:

Re: Blocking websites

^ so try changing it as suggested in the previous post and see if that solves that problem as well... I'm pretty sure that if you use different numbers in the last bit of the IP address, it will work for all listed sites.

Re: Blocking websites

This might help a bit more.

:rotfl::rotfl::rotfl::rotfl:

Re: Blocking websites

no, you don't have to change the last octet for different sites. 127.0.0.1 is all you need. On an enterprise level I used to change everything on the DNS level. For example when this recession started happening I saw a lot of traffic going to Monster and careerbuilder - type sites so I started pointing all those domains to a custom page which had internal job openings at our HQ (same page for all of those job hunting domains).

It was pretty funny seeing people's reaction. They couldn't say anything either so it was funnier.

PS: The video that Namaan posted says it only works for Vista. Thats not true, that feature (trick) works for every single OS including all Windows OSs, Mac OS, Linux and other Unix flavors. In fact the "etc" folder (location varies among OS's) is adopted from the *nix environment. The hosts files exists everywhere. In the *nix side you actually have to change permissions to be able to modify it.

PS 2: 127.0.0.1 denotes "home". You'd see see a lot of geeks (and I use that term in the utmost respect) using that IP to freely replace the word home in slogans and other writings.

Re: Blocking websites

^ :hehe: at the redirects … must have been fun to see the reactions.

I’m familiar with the etc/hosts stuff back from my days of working with Solaris and Linux as well. I just thought that having independent mappings between IPs and sites was the way it needed to be done. Thanks for clarifying.

On a related note, for using the hosts file more effectively, does DNS caching need to be disabled?

Re: Blocking websites

No, DNS caching's number comes after. Here's the order in which computers do the translation:

  • NetBIOS (not sure if linux uses this)
  • WINS (windows only)
  • lmhosts file
  • hosts file
  • DNS cache
  • DNS server

Its fun troubleshooting name resolution issues when specific groups are effected and not everyone.

Re: Blocking websites

how many sites can the solution provided above block? for me, i wrote about 15 or so and after that, whatever im puttin it in as a blocked site isnt getting blocked.

Re: Blocking websites

Technically there’s no limit, and mostly at the network level it works seamlessly. For web browsing purposes it may not be the most appropriate after a few dozen sites as it may slow things down.

What are you really trying to do? If you are using Firefox there’s a plugin called AdBlock that may come in handy for some people. Here’s a link:
mozdev.org - adblock: index

If you let us know if its for something different I’m sure we can find another solution.

you sure your browser isn't fetching a cached version of the site? Try Ctrl+F5 (hard refresh) a couple of times to see if it is getting blocked or not.

“There’s no place like 127.0.0.1”… man did I love using that that back in the day… :hehe:

PS: I’m not a geek, i’m a nerd. Big difference. :snooty: