Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal server and Internet access...

Status
Not open for further replies.

Timmkatt

IS-IT--Management
Sep 28, 2006
71
US
Is it possible to allow a certain group of terminal server users access to one website from their ts desktop without giving global web access to that group or restricting web access to the other groups? Thanks.
 
I do this using a script which modifies the Proxy setting in IE. At one time I used the native GPO, but it kept breaking and I could not find any answers as to why.

I wrote the script containing my Proxy settings and attached it to a user logon script.

Here's an example script that essentially blocks access to all internet sites, except for FTP and HTTPS sites. This will also allow access to Anything else will be directed to a "blackhole". Of course, simply plug in whatever sites you wish to add.

Code:
Dim objShell
On error resume next
'''''''''''''''''''''''''''''''''''''''''''
'Proxy settings for limited Internet access
'Courtesy of monsterjta @ tektips
'strValueProxyOverride = allowed sites
'''''''''''''''''''''''''''''''''''''''''''
locProxyEnable = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable"
binValueProxyEnable = 1
locProxyServer = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer"
strValueProxyServer = "localhost:80"
locProxyOverride = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride"
strValueProxyOverride = "www.shoes.com;[URL unfurl="true"]https://;ftp://;<local>"[/URL]

'write
Set objShell = CreateObject("WScript.Shell")

objShell.RegWrite locProxyEnable, binValueProxyEnable, "REG_DWORD"
objShell.RegWrite locProxyServer, strValueProxyServer, "REG_SZ"
objShell.RegWrite locProxyOverride, strValueProxyOverride, "REG_SZ"

Hope This Helps,

Good Luck!

(Enamoration by Automation)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top