TeenHollywood Network
  • Location:
  • Home >
  • Forums
Games
Go Back   FanHost Forums > Culture, Sports & Technology > Video Games & Computers
Register FAQ Members List Arcade Calendar Search Today's Posts Mark Forums Read
Reply
 
LinkBack Thread Tools
Old 05-04-2008, 10:33 PM   #1 (permalink)
Ghost in the Machine
 
RebelMan's Avatar
 
Join Date: Jul 2003
Location: The Web
Posts: 9,624
Question Blocking Websites

I need to block a couple of websites from being opened/used when other people go to them through FireFox on my computer, but it needs to be set up so that only I can use them & no one else can.

How do I make this happen?
RebelMan is offline   Reply With Quote

Old 05-05-2008, 01:42 PM   #2 (permalink)
Cannot live without Love
 
mced's Avatar
 
Join Date: Jul 2006
Location: Spain
Posts: 1,991
Default

I guess there are a lot of apps that can do something as that. But I've thought about a method that doesn't involve installing software. Requeriments are:

- Your account is an administrator one (or you can access to one).
- The "other people" don't know a damn thing about Windows and networking (I guess you're using Windows). And it's recommended that their accounts are "normal" ones (not admins).

The main advantage: it will work not only with Firefox, but with any other browser; actually, any other program (including download managers, E-mail clients, etc).

Let's block www.youtube.com, for example:

1. Open a "My Computer" Explorer window and browse to C:\Windows\system32\drivers\etc\
2. Make a copy of the "hosts" file (in the same folder) and call it "originalhosts". These files don't need extension.
3. Run Notepad and type (or copy & paste) something like:

Code:
127.0.0.1 localhost
127.0.0.1 www.youtube.com
The "127.0.0.1 localhost" must be present. You just have to add more lines, containing a "127.0.0.1", a blank space (important!) and any other site you want to block, without the "http://" or any other subdirectory or slash. More examples:

127.0.0.1 www.google.com
127.0.0.1 www.msn.com
127.0.0.1 forums.fanhost.com #(nooooo!!!!)

4. Save this file in the same folder, with the name "blockhosts".

Now we have the original hosts file, and a modified one that will block any attempt to load YouTube. The only thing we need is an easy way to change between both of them.

5. Open Notepad again and type the following:

Code:
copy /y %SystemRoot%\system32\drivers\etc\originalhosts %SystemRoot%\system32\drivers\etc\hosts
6. Save it anywhere you want (f.e, the desktop) and call it "permit.cmd" (don't forget the CMD extension).

7. Again, Notepad:

Code:
copy /y %SystemRoot%\system32\drivers\etc\blockhosts %SystemRoot%\system32\drivers\etc\hosts
8. Save this other batch file as "block.cmd".

9. Now you just have to doubleclick "permit.cmd" to allow any site, like normally; and doubleclick "block.cmd" to block YouTube.

10. Now it's up to you to "hide" those two files (block.cmd and permit.cmd) or call them what you want (like green.cmd/red.cmd or celtics.cmd/bulls.cmd... whatever) to avoid "the other people" finding them. Anyway, if "the other people" are not administrators, they can't do anything even if they execute them. It's a good idea to make those two CMD files only readable by administrators.

Ways to circumvent this? A lot of them:

- If they know how to use a public proxy, they could load YouTube. Of course, you can also block proxies, but that's a little... laborious.
- If they know the "nslookup" command, or any nslookup webservice, they could circumvent this, just by entering YouTube using its IP (208.65.153.238 is one). Anyway, there are many sites that doesn't allow this method. YouTube does, by the way.

I hope this is useful.
mced is offline   Reply With Quote
Old 05-08-2008, 04:57 PM   #3 (permalink)
Ghost in the Machine
 
RebelMan's Avatar
 
Join Date: Jul 2003
Location: The Web
Posts: 9,624
Default

Thanks for the help mced.

And since I only use FireFox & don't have Internet Explorer at all, I found an addon called BlockSite that suits my needs perfectly.
RebelMan is offline   Reply With Quote

Old 05-09-2008, 06:31 PM   #4 (permalink)
Cannot live without Love
 
mced's Avatar
 
Join Date: Jul 2006
Location: Spain
Posts: 1,991
Default

Mmmmhhh...

BlockSite 0.7
by Erik van Kempen, Noel Briggs

...

This extension should by no means be used for parental control
or access control purposes, just because it isn't secure and
can easily be disabled or even removed.
mced is offline   Reply With Quote
Old 05-09-2008, 08:40 PM   #5 (permalink)
Ghost in the Machine
 
RebelMan's Avatar
 
Join Date: Jul 2003
Location: The Web
Posts: 9,624
Default

Quote:
Originally Posted by mced View Post
Mmmmhhh...

BlockSite 0.7
by Erik van Kempen, Noel Briggs

...

This extension should by no means be used for parental control
or access control purposes, just because it isn't secure and
can easily be disabled or even removed.
I know. But the people I'm trying to keep off my comp don't know a thing about FireFox addons since the only thing they have ever used is Internet Explorer.
RebelMan is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

All times are GMT -4. The time now is 08:34 AM.



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Powered by vBulletin. Copyright © 2007 TeenHollywood.com II Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90