Foo - How do I block sites?

Bikeforums.net is a forum about nothing but bikes. Our community can help you find information about hard-to-find and localized information like bicycle tours, specialties like where in your area to have your recumbent bike serviced, or what are the best bicycle tires and seats for the activities you use your bike for.
I want to block a site from my computer so my sister wont go to it and take 2 hours on it lol. Aren't I nice:p
KingTermite
03-28-06, 07:34 PM
Add the website to your hosts file.
c:\<windir>\system32\drivers\etc
Any file you map to 127.0.0.1 will loop back to your computer and since you aren't hosting the site, it will come up blank.
Play your evil prank, bro!!
phantomcow2
03-28-06, 07:35 PM
Browsers typically have a setion where you can add a site to a "blocklist". Play around in settings, it is probably under preferences, tools, or edit
CyclinJoe
03-28-06, 07:36 PM
If you are running through a router, it can be done on the router's domain.
I have no idea where to start.:lol:
free_pizza
03-28-06, 07:43 PM
I want to block a site from my computer so my sister wont go to it and take 2 hours on it lol. Aren't I nice:p
there's a simple solution that doesnt involve using a computer.... Closed Fist -> Sister
explody pup
03-28-06, 07:43 PM
1. Tell her not to go to the site on your computer.
2. Keep an eye on your history and when she does, cut off her right index finger.
3. Tell her next time she'll lose the whole hand.
You gotta be rough, somtimes.
Add the website to your hosts file.
c:\<windir>\system32\drivers\etc
Any file you map to 127.0.0.1 will loop back to your computer and since you aren't hosting the site, it will come up blank.
Play your evil prank, bro!!
How do you map a file to the loop back address? In English?
Pizza, Pup..lol wtf...yeah Ill beat up my sister.:roflmao:
The hosts file is the best way to do it. It's also a great April Fool's joke if you can get into a coworker's machine. Esp if there is a web-based program that they use to do their job. Make it point to a non-existant website (makes it look like the system is down) or make it point to another website (like a Google Image search for 'April Fools!')
I found the file ect, but I dont know how to put the site in there..
ChAnMaN
03-28-06, 10:46 PM
Add the website to your hosts file.
c:\<windir>\system32\drivers\etc
Any file you map to 127.0.0.1 will loop back to your computer and since you aren't hosting the site, it will come up blank.
Play your evil prank, bro!!
that is clever...but you can also just block it in your browers privacy settings, or make it password protected.
KingTermite
03-28-06, 11:13 PM
How do you map a file to the loop back address? In English?
This is the old school way of blocking spam sites so their ads don't show up on your website. You can find HUGE host file lists online. Mine is 32K now. ;)
In English:
1. Find the file: c:\windows\system32\drivers\etc\hosts
It's just a text file.
2. Open it up in notepad or any TEXT editor (e.g. Not MS Word, Wordpad, etc...).
3. Add lines to sites you want to block like this:
Example Blocked Websites
127.0.0.1 thisbanner.com
127.0.0.1 thisislondon.co.uk
127.0.0.1 thruport.com
127.0.0.1 tier1network.com
127.0.0.1 tietokone.fi
CPcyclist
03-29-06, 12:36 AM
So KingT you let us in on 32k of sites that need blocking??
Pink_Ninja
03-29-06, 12:43 AM
Hey KT, I tried, I opened it up in notepad and went
127.0.0.1(press TAB button)(insert website name here)
and it doesn't work :(
I did it too and it didnt work:(
KingTermite
03-29-06, 05:56 AM
Hey KT, I tried, I opened it up in notepad and went
127.0.0.1(press TAB button)(insert website name here)
and it doesn't work :(
If there was already a 127.0.0.1 there, there should have been "something" beside it to right.
Make sure you add new lines with "127.0.0.1 <tab> website name".
Also, make sure you close and reopen browser after you do this.
KingTermite
03-29-06, 06:00 AM
So KingT you let us in on 32k of sites that need blocking??
I got it from http://www.cdfreaks.com/ but I sure as heck can't find it now. There is a comment that states that's where I got it from.
If people are really interested, I could post it.
Be careful EJ, your sister might find a way to block Bikeforums. She's probably just as mad at you for spending so much time on here.
Karldar
03-29-06, 06:37 AM
I did it too and it didnt work:(
Make sure your hosts file isn't set to read-only. Right-click, then Properties...uncheck the Read-Only box. You can set it back once you add the site, if you want.
timmhaan
02-22-07, 09:50 AM
bumping this.... anyone else have any ideas?
i haven't been successful at blocking sites. the host file thing doesn't work and putting the website in IE's "restricted sites" with everything set to 'disable' still doesn't work. I know that firefox has external programs that you can download, but i don't want to get into all that if i don't have to.
This seems like it would be simple thing.
KingTermite
02-22-07, 09:58 AM
I don't know why you are having problems with hosts file....it works like a champ. The hosts file trick goes all the way back to the origin of browsers. How did you add it? Can you post the contents of your hosts file?
Make sure you use a text editor so it saves it back as a plain text file (e.g. don't use MS word or something like that).
timmhaan
02-22-07, 10:01 AM
sure, here is what i got (after all the comments):
127.0.0.1 localhost
127.0.0.1 bikeforums.net
There is a <tab> in between. Do i need the http:// in front? I tried that, though, and it didn't work either.
KingTermite
02-22-07, 10:04 AM
Nope...that should work fine. You "may" need to put the "www" on front ( e.g. 127.0.0.1 www.bikeforums.net )
Did you close your browser (all browser instances) and reopen? If so, you should not be able to access bikeforums.
Maelstrom
02-22-07, 10:05 AM
Make sure you are using all variations of the url. For example you need to seperate lines for www and no www.
127.0.0.1 google.com
127.0.0.1 www.google.com
You shouldn't need to do anything in your browser.
Sometimes when you edit the hosts file in notepad, it will try to add a '.txt' extension to it when you save it. Make sure the filename is still just 'hosts' with no extension.
KingTermite
02-22-07, 10:06 AM
Just checked it....yes you need the "www" (at least for bikeforums). I did it as you had it, BF still came up. I added the "www" and it wouldn't come up anymore.
KingTermite
02-22-07, 10:07 AM
Sometimes when you edit the hosts file in notepad, it will try to add a '.txt' extension to it when you save it. Make sure the filename is still just 'hosts' with no extension.
Good point. I haven't used notepad in years....forgot about that. I use a fancy shmancy programmer's editor.
Maelstrom
02-22-07, 10:08 AM
Good point. I haven't used notepad in years....forgot about that. I use a fancy shmancy programmer's editor.
I just drop to dos and use edit.
Me too, EditPlus for the win.
I don't know why you are having problems with hosts file....it works like a champ.
The answer here is simple: their Kung Fu is weak, where yours is strong.
KingTermite
02-22-07, 10:11 AM
I just drop to dos and use edit.
That's fine for something quick....but the bells and whistles come in handy when looking at/editing an 8000 line C file.
Me too, EditPlus for the win.
UltraEdit here. Been using it for about 6 or 7 years now.
jfmckenna
02-22-07, 10:11 AM
Your ISP may have a proxy server before your internet connection so that that is the first thing your machine goes to resolve names instead of HOST. I think there is a way to bypass the proxy for local addresses like your 127.0.0.1. but I am not sure.
Maelstrom
02-22-07, 10:12 AM
That's fine for something quick....but the bells and whistles come in handy when looking at/editing an 8000 line C file.
No doubt
KingTermite
02-22-07, 10:14 AM
No doubt
Remember or ever use Edlin?
That was my "first" editor. :( :eek:
timmhaan
02-22-07, 10:16 AM
okay, i got it! thanks so much guys.
having just www.bikeforums.net seemed to do the trick.
jfmckenna
02-22-07, 10:17 AM
eggsalent
timmhaan
02-22-07, 10:18 AM
UltraEdit here. Been using it for about 6 or 7 years now.
we use ultraedit here as well. it's really nice and easy. we tried vslick for a while and it just didn't meet our business needs. now, we're supposed to use epic for our XML files, but it's kinda of bear to work with the way we have it set up. i always use ultraedit even though it's not an approved piece of software for us.
Maelstrom
02-22-07, 10:27 AM
Remember or ever use Edlin?
That was my "first" editor. :( :eek:
I don't remember my first. It would have been the stock one for my apple IIc.
I do remember edlin however, thats something from a distant memory when I used to hack setup files for Renegade bbs software to customize the backend for me and my friends.
the local thing doesnt work with AOL.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.