Click to See Complete Forum and Search --> : Preventing Users from websites
mrstuff68
Mar 28th, 2004, 09:22 PM
I would like to know if there is a way that I can block certain websites in Windows XP, obviously with administrator power. For example, what can I do either in windows or what other program can I get / download so that I can prevent the other users from going to certain sites. Say i would like to block users from going to www.yahoo.com what do I need to do, so that when the user goes to that site it will not even load for them.
Any solutions to this, all ideas are greatly appreciated.
Thanks
Danial
Mar 28th, 2004, 10:01 PM
I assume you are system admin, and user dont have write permission in System32 folder then you should be able to implement it easily using hostfile.
add a entry to hostifle which will redirect the site you want to block to a local html file (e.g saying this site is blocked).
If you are not familiar with hostfile then let me know, i will explain it.
Hope this helps.
Danial
mendhak
Mar 28th, 2004, 10:07 PM
Originally posted by Danial
I assume you are system admin, and user dont have write permission in System32 folder then you should be able to implement it easily using hostfile.
add a entry to hostifle which will redirect the site you want to block to a local html file (e.g saying this site is blocked).
If you are not familiar with hostfile then let me know, i will explain it.
Hope this helps.
Danial
Wouldn't that apply to all users, including the admin?
Danial
Mar 28th, 2004, 10:10 PM
Originally posted by mendhak
Wouldn't that apply to all users, including the admin?
Yes, thats correct mendhak. I assumed thats what he wants...
Lightning
Mar 29th, 2004, 02:09 AM
But if the user knows the IP-adress of the site he wants to see, he can type that in the browser, and that *SHOULD* work
mrstuff68
Mar 29th, 2004, 09:05 AM
Danial,
Yes, I am the one with Admin.
I have not done anything with hosts files, so I would appreciate if you can give me exact instructions on how to do this or guide me to a site that will explain precisely how to do this.
The thing is that I want to block all users from going to certain sites, but allow the Admin to go to any site that I wish to go to. This is only for limited user accounts. I dont want the users to go to these sites but I dont want it to stop me from going there.
thanks
DaveBo
Mar 29th, 2004, 10:45 AM
Not sure if this is any help, but
in the Internet Explorer browser itself you can specify certain websites as always or never allowed.
In I.E. go to
Tools - Internet Options - Content tab - then Settings... button
cid
Mar 29th, 2004, 10:50 AM
set this proxy:
bess-proxy.esc11.tenet.edu
Port: 7028
This will stop people from accesing "bad" sites.
mrstuff68
Mar 29th, 2004, 12:59 PM
CID, it isnt to block bad sites, its just to prevent access to a few sites, from that given computer.
DaveBo, I am going to look into your option but I believe that I tried something like that and it didnt seem to work.
Danial
Mar 29th, 2004, 02:37 PM
Originally posted by mrstuff68
Danial,
Yes, I am the one with Admin.
I have not done anything with hosts files, so I would appreciate if you can give me exact instructions on how to do this or guide me to a site that will explain precisely how to do this.
The thing is that I want to block all users from going to certain sites, but allow the Admin to go to any site that I wish to go to. This is only for limited user accounts. I dont want the users to go to these sites but I dont want it to stop me from going there.
thanks
Hi,
Like some one mentioned, if you go with the host file, then it would block everyone from visting the site. Though you could write application to modify the host file depending on the user stastus.
Secondly if someone knows the IP address, i think they would be able to visit the site, like a poster mentioned. Would that be acceptable?
I have some code somewhere which blocks sites visited using IE, havent tested it on any other browser or whether it will work with IP address.
I will test it out if i get a chance and find the code.
Danial
mrstuff68
Mar 29th, 2004, 03:29 PM
Danial,
I can do the host file thing, but I have not idea of how to do this. If you could provide me with some info on how to take care of this host file stuff I would greatly appreciate it.
I am really not too scared about IP address, but cant I put the IP in host file and block that also?
I am willing to do just about anything possible, as long as I get it done ASAP.
Thanks
Danial
Mar 29th, 2004, 03:39 PM
Ok let me go step by step.
1. First create a HTML page saying, "This page is blocked and can not be accessed" or something like that, lets save it as blocked.htm
2. Now open up note pad and open this file
C:\WINDOWS\system32\drivers\etc\host
Notice the file is called host with no extension and the path will differ depending on your operating system, though it is always in
Windows Folder\System32\Drivers\etc folder
3. Now you might already have some entry. By default there is only one.
127.0.0.1 localhost
4. The first colum is where the user will get redirectd, second column is where you specify the URL of the site you wan to block.
I am not sure if you can have the user redirected to a local file, if you have a web server running then there should be no problem.
5. Now add the entries and save the file
e.g
127.0.0.1/blocked.htm www.yahoo.com
127.0.0.1/blocked.htm www.microsoft.com
Now you may havet to restart to apply the changes.
Try typing the url and see what happens.
Try using the IP of the site instead of the url, in the host file and see if that works, it might you never know.
Hope this helps.
Danial
Danial
Mar 29th, 2004, 03:44 PM
sorry its called "hots" not "host"
mrstuff68
Mar 29th, 2004, 10:33 PM
Danial,
I have tried what you told me in the instructions and I have not been able to get it working. What folder do I put the blocked.htm? Also what do you mean by hots and not hosts?
I have not been able to get this working like it is suppose to, please let me know what else I can do.
<ABX
Mar 30th, 2004, 12:14 AM
File files path is: C:\WINDOWS\system32\drivers\etc\host
host is the file, it has no extention
Now you need to configure IIS(Internet Information Server)
If you already have IIS install just copy the file to c:\inetput\wwwroot\
Installing IIS
Get In to the Control Panel
Open Add or Remove Programs
Click Add/Remove Windows Componets On the side
Check IIS (Internet Information Services)
Click ok and then it will install, you might need your xp disc
s
mendhak
Mar 30th, 2004, 02:44 AM
Bah, forget about being "comprehensive"
Just put in the URL of the bad site, and send it to http://127.0.0.1
It doesn't matter if you have IIS installed or not, you'll just get the 404 page.
Danial
Mar 30th, 2004, 07:09 AM
Did you manage to get it to work?
If you dont have IIS installed and dont want to install it, then try uploadign the html page somewhere on the Internet and then specify the IP that should work.
e.g
instead of :
127.0.0.1/blocked.htm www.yahoo.com
http://213.23.34/blocked.htm www.yahoo.com
Let me know how you get on.
Danial
mendhak
Mar 30th, 2004, 08:30 AM
Or just send them to
http://www.vbforums.com/showthread.php?s=&threadid=284399 www.yahoo.com
:lol:
Danial
Mar 30th, 2004, 08:39 AM
Originally posted by mendhak
Or just send them to
http://www.vbforums.com/showthread.php?s=&threadid=284399 www.yahoo.com
:lol:
Yes he could, but it would be pointless, as this thread tells you how to get around the scheme :lol:
mrstuff68
Mar 30th, 2004, 08:51 PM
I have tried everything and cant seem to get it to work. Let me see if I have everything right. I uploaded the blocked.htm to my webpage to make it simple, I have also put the link to my page in the host file, ex. http://........./blocked.htm www.yahoo.com and I have saved and it still doesnt work. I tried doing it through IIS and still cant get it to work, what could I possibly be doing wrong??
Can you upload a host file, that actually works, so that I can just throw it into the etc folder and test it out to see how and if it works.
Thanks
Danial
Mar 30th, 2004, 09:05 PM
Originally posted by mrstuff68
I have tried everything and cant seem to get it to work. Let me see if I have everything right. I uploaded the blocked.htm to my webpage to make it simple, I have also put the link to my page in the host file, ex. http://........./blocked.htm www.yahoo.com and I have saved and it still doesnt work. I tried doing it through IIS and still cant get it to work, what could I possibly be doing wrong??
Can you upload a host file, that actually works, so that I can just throw it into the etc folder and test it out to see how and if it works.
Thanks
What operating system are you using? Did you find the hosts file in the etc folder or you created it? Also did you restart after you changed the hosts file?
Use IP address instead of url
e.g
127.0.0.1/blocked.htm www.yahoo.com
mrstuff68
Mar 30th, 2004, 09:34 PM
I am using windows XP. I found the hosts file, I didnt not create it., there where a few other lines in it, so I just added my line. Restart is the only thing I didnt do. But will try that now.
Danial
Mar 30th, 2004, 09:40 PM
Originally posted by mrstuff68
I am using windows XP. I found the hosts file, I didnt not create it., there where a few other lines in it, so I just added my line. Restart is the only thing I didnt do. But will try that now.
It would not work without restart.
mrstuff68
Mar 30th, 2004, 09:47 PM
Ok, I restarted and still nothing. Can it be due to the version of IE that I am using, or what cause I really dont know what else I can do.
This is where the file is
c:\windows\system32\drivers\etc\hosts
and this is the line that I added into it.
http://213.23.34/blocked.html www.yahoo.com
Are you sure that nothing else needs to be done?
How do I know that when I go to IE and type www.yahoo.com, that IE had went and looked at the hosts file, is there any way to check, cause there really isnt anything that I can mess up.
any other ideas
Danial
Mar 30th, 2004, 09:56 PM
Originally posted by mrstuff68
Ok, I restarted and still nothing. Can it be due to the version of IE that I am using, or what cause I really dont know what else I can do.
This is where the file is
c:\windows\system32\drivers\etc\hosts
and this is the line that I added into it.
http://213.23.34/blocked.html www.yahoo.com
Are you sure that nothing else needs to be done?
How do I know that when I go to IE and type www.yahoo.com, that IE had went and looked at the hosts file, is there any way to check, cause there really isnt anything that I can mess up.
any other ideas
I dont think its the browser.
dont use the http before the IP address. Try it without the http part(213.23.34/blocked.html). Rember you need a restart to take the effect of this change.
For more detailed information about hosts file read this
http://www.accs-net.com/hosts/how_to_use_hosts.html
mrstuff68
Mar 31st, 2004, 09:50 PM
I have tried everything now. Http, no http. Restart, everything that you toldme about 5 fold and this still doesnt want to work.
Danial
Mar 31st, 2004, 10:06 PM
Originally posted by mrstuff68
I have tried everything now. Http, no http. Restart, everything that you toldme about 5 fold and this still doesnt want to work.
I am really sorry but i am mystified to the reason why its not working for you. I have two machine running currently, and in both of them i am using host files to block ads.
Kantalope
Apr 2nd, 2004, 03:01 PM
Windows XP has settings and everything:
microsoft content blah blah (http://www.microsoft.com/windows/ie/using/howto/contentadv/config.asp)
check out part 7 - you would type in the url and hit disapprove
Danial
Apr 2nd, 2004, 03:03 PM
Originally posted by Kantalope
Windows XP has settings and everything:
microsoft content blah blah (http://www.microsoft.com/windows/ie/using/howto/contentadv/config.asp)
check out part 7 - you would type in the url and hit disapprove
Would it work if user is using other Web Browser then IE?
Kantalope
Apr 2nd, 2004, 03:16 PM
other than IE? <--the dickens you say.
My Mozilla is kinda old - so dunno.
Earthlink uses some IE shell so that would work...
AOL - you could set up kiddee accounts for everyone...
For that matter you could get some kind of filter software - I don't have kids so I don't worry about such things - but that stuff would have to interfere with all browsers or all jr. would have to do is download and bypass all that nifty filter stuff.
Danial
Apr 2nd, 2004, 03:18 PM
Originally posted by Kantalope
other than IE? <--the dickens you say.
My Mozilla is kinda old - so dunno.
Earthlink uses some IE shell so that would work...
AOL - you could set up kiddee accounts for everyone...
For that matter you could get some kind of filter software - I don't have kids so I don't worry about such things - but that stuff would have to interfere with all browsers or all jr. would have to do is download and bypass all that nifty filter stuff.
Even AOL uses IE underneath. If it works in Mozilla/Netscape/Firefox, it would be a awsome feature. Though even for IE only is a good feature :).
mrstuff68
Apr 5th, 2004, 08:58 AM
The Windows XP settings seem to be just what I need. That should be good enough.
Thanks Kantalope
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.