PDA

View Full Version : How to disable internet connection? (All)



CyberBUG
06-10-2003, 09:14 AM
Multiple users can log on to a pc, but I want some users to be able to use internet but others can not. Not even play online games, eg. counter-strike, age of empire.

I have search the forum, but all methods are only to restrict browsing, not blocking internet alltogether. Is there a way to disable/enable internet access totaly by using logon scripts/.reg files?

Thanks,

jdharm
06-11-2003, 11:45 AM
Yes. Depends on the setup. What OS does this machine use? Is it a stand-alone or networked pc? Local or roaming profiles? Workgroup or domain?

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>

CyberBUG
06-12-2003, 07:29 AM
Most are Win98SE, a few W2K Pro. They are networked, logon to a W2K Server Domain (with active directory already setup, and users defined).

Thanks jdharm,

jdharm
06-12-2003, 01:16 PM
The most effective way I have found is to set proxy settings in IE and then deny registry editing and access to IE settings. To allow access you disable proxy use or set the IP:port address to the valid address; to deny access you enforce proxy use and direct the computer to a fictitious IP address. You can do this via a *.reg file or with policies as proxy use and address are just a matter of a dword and a string in the registry. With a mixed bag of users and OSs you'll have to figure out the best way to do it for your purposes, so I'll just tell you the methods I have used for this and why.

I have used *.reg files called from the logon batch or from a batch file stuck in the startup folder. The advantage is it is easy to do and will allow my teachers to turn the net off and on for the students with a simple del & copy batch file that puts the appropriate *.reg file in place. The problem is that applying the *.reg file can, and frequently is, interrupted by the users accidently at login. This wouldn't be such a big deal if the teachers would learn to use the tools I have given them to remedy this, but as we know, users tend to be lazy. They just want everything to work magically.

The method I use now is group policies. I include code snippets in the *.adm files that I use with Poledit to create the policies. The advantage is it is seems to be more reliable than batch or scripts and you can enforce the policies on a group or individual user basis. The down side is that if you've never used policies before it takes a bit to get the hang of policies. It took me several hours to get it down, but the payoff is easily worth the investment.


The registry locations for proxy use and address are:

[HKEY_C_U\Software\Microsoft\Windows\CurrentVersion \Internet Settings]

Data Name=ProxyEnable(dword)
Values=1(enforce proxy use)or 0(disable proxy use)

Data Name=ProxyServer(string)
Values=proxy address in format IP address : port (ex: "10.1.1.1:80")


To get more specific I would have to know specific details about what you want to do. Let me know if you need more details on how to go about this or if it got you started on the right track to fixing it yourself.

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>

CyberBUG
06-14-2003, 05:18 AM
OK, I have tried this method. It will work for disabling/enabling internet browsing with IE and Office applications, but online gaming is not affected in anyway, eg. Counter-Strike and Age of Empires.

I need to turn online gaming on/off too with different users. Can it be done?

boom2k3
06-15-2003, 05:30 PM
Do you have firewall running? if you do you could specify the port for each individual ip address and deny access to that port. I believe you could do this in proxy settings as well.

CyberBUG
06-16-2003, 09:49 PM
I will have firewall up soon, but this still doesn't solve the problem. When I logon to this PC, I want to have internet browsing and online games available, but I do not want other users to have these facility.

So I need a script to allow internet+games when I logon, but disable these when others logon.

Any ideas pls?