Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Network and Classroom Management

Network and Classroom Management forum sponsored by
Network and Classroom Management Sponsored by NetSupport Ltd

NetSupport Manager, LanSchool, RM CC3, Ranger, VNC or other? All your questions and queries here.

Go Back   EduGeek.net Forums > Technical > Network and Classroom Management
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 05-03-2007, 12:25 PM   #1
 
GavRob's Avatar
 
Join Date: May 2006
Location: West Kirby
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 GavRob is an unknown quantity at this point
Default Proxy switch "proxy on" & " proxy off" software

Proxy switch "proxy on" & " proxy off" software / reg edit

Does any one know of a free piece of software to do this ? i have been through google and have not found anything suitable.

What i want to do is have on icon were staff can click and run a program on there laptops that will, in school use the proxy in internet explorer and at home will turn it off.

I know they can do this in the settings but, well, how do I put it.........erm ......it is a bit complicated for them.

Any help would be much appreciated.

Cheers Gav
  Reply With Quote
Old 05-03-2007, 12:35 PM   #2
 
webman's Avatar
 
Join Date: Nov 2005
Location: County Durham
Posts: 6,865
uk uk durham city
Thanks: 457
Thanked 372 Times in 292 Posts
Blog Entries: 2
Rep Power: 117 webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute webman has a reputation beyond repute
Default Re: Proxy switch "proxy on" & " proxy off" software

I think someone posted something like this a while ago on a laptop thread.

It's doable in VBScript (create separate on/off shortcuts to it and using parameters for control) or an AutoIT with a basic GUI.

Edit: here's one I made earlier 8)

Code:
Set WSHSHell = WScript.CreateObject("WScript.Shell")
Dim Key,Phoenix,Redlist,ProxyServer,Args,Num,UseProxy

Key = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\"
Phoenix = "10.0.0.1:8080"
Redlist = "redlist.server.pavilion.net:1669"

ProxyServer = Phoenix


Set Args = WScript.Arguments
Num = Args.Count


If Num = 0 Then
   MsgBox "Usage: [CScript | WScript] proxy.vbs <On|Off> <server:port> <Yes|No>" & vbCrLf & vbCrLf & "On|Off" & vbTab & vbTab & "-- Toggle access via proxy." & vbCrLf & "server:port" & vbTab & "-- Proxy server & port combo" & vbCrLf & "Yes|No" & vbTab & vbTab & "-- Confirmation of on or off message" & vbCrlf & vbCrLf & "i.e. 'proxy.vbs On 10.0.0.1:8080 Yes' to use proxy and display confirmation ", vbInformation, "Proxy"
   WScript.Quit 1
End If


For i = 0 to Num-1

	Cmd = Args.Item(i)

	Select Case Cmd
	
		Case "On":
   	UseProxy = TRUE
		
		Case "Off":
		UseProxy = FALSE

		Case "Yes":
		Confirm = TRUE
		
		Case "No":
		Confirm = FALSE
		
		Case Else:
		ProxyServer = Cmd

	End Select 

Next


If UseProxy = TRUE Then

	WshShell.RegWrite key & "ProxyEnable", 1, "REG_DWORD"
	WshShell.RegWrite key & "ProxyServer", ProxyServer, "REG_SZ"
	ConfirmText = "Internet access via proxy is enabled through:" & vbCrLf & vbCrLf & ProxyServer
	ConfirmIcon = vbInformation
	ConfirmCapt = "Proxy ON"
	
ElseIf UseProxy = FALSE Then

	WshShell.RegWrite key & "ProxyEnable", 0, "REG_DWORD"
	ConfirmText = "Internet access via proxy is turned *OFF*"
	ConfirmIcon = vbCritical
	ConfirmCapt = "Proxy OFF"
	
End If


If Confirm = TRUE Then

	MsgBox ConfirmText, ConfirmIcon, ConfirmCapt
	
End If
  Reply With Quote
Old 05-03-2007, 12:37 PM   #3
 
Irazmus's Avatar
 
Join Date: Feb 2006
Location: Suffolk
Posts: 304
uk uk england
Thanks: 9
Thanked 3 Times in 3 Posts
Rep Power: 10 Irazmus will become famous soon enough
Default Re: Proxy switch "proxy on" & " proxy off" software

I was looking at this a while ago and eventually came up with an easier solution. I've set the "Automatic Proxy Configuration URL" (in Firefox) and "Use Automatic Configuration Script" (in IE) to a script on our internal webserver, when in school the script can be found and the proxy is used, when not in school it can't and so is ignored.

Code:
function FindProxyForURL (url, host) {
  if ( host.match("intranet1|intranet2|intranet3).your.local.domain") || dnsDomainLevels(host) == 0 ) {
    return "DIRECT";
  } else {
    return "PROXY your.proxy.server:port; DIRECT";
  }
}
  Reply With Quote
Old 05-03-2007, 01:06 PM   #4
 
OutToLunch's Avatar
 
Join Date: Feb 2006
Location: Derbyshire
Posts: 1,262
uk
Thanks: 131
Thanked 189 Times in 152 Posts
Rep Power: 49 OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of OutToLunch has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

I was using ProxyPal which provided a toolbar button in IE, but found that if staff forgot to turn the proxy off before going home IE would hang for ages trying to access the proxy and the additional toolbar buttons do not show up until the first successful page load - so loads of complaints about 'You broke my internet at home!" etc despite explaining how to use it...

This is much better -

http://www.proxychanger.com/

Nice little system tray icon, simple UI, all you'll have to do is add your proxy and show them how to turn it on and off
  Reply With Quote
Old 05-03-2007, 01:32 PM   #5
 
CyberNerd's Avatar
 
Join Date: Jan 2006
Posts: 4,258
uk
Thanks: 119
Thanked 314 Times in 251 Posts
Rep Power: 78 CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future CyberNerd has a brilliant future
Default Re: Proxy switch "proxy on" & " proxy off" software

I use switchproxy
http://mozmonkey.com/packages/switch...witchproxy.xpi
  Reply With Quote
Old 05-03-2007, 02:11 PM   #6
 
mac_shinobi's Avatar
 
Join Date: Aug 2005
Posts: 4,172
uk
Thanks: 307
Thanked 310 Times in 290 Posts
Rep Power: 64 mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

MVP site regarding proxy changing

http://windowsxp.mvps.org/proxych.htm

The tool from the above site afaik

http://www.allscoop.com/dotnet-softw...xy-changer.php

Another proxy changer that seems pretty good.

http://www.codeplex.com/AdvancedProxyManager
  Reply With Quote
Old 05-03-2007, 02:46 PM   #7
Guest
 
's Avatar
 
Posts: n/a
Default Re: Proxy switch "proxy on" & " proxy off" software

Here is a VB script I use to enable / disable the proxy on staff laptops

Code:
Const HKEY_CURRENT_USER = &H80000001

intmsg = msgbox("CHANGE PROXY SETTINGS" & chr(13) & "ARE YOU AT HOME?",vbYesNo+vbQuestion,"WHERE ARE YOU?")

if intmsg = vbyes then dwvalue = 0 else dwvalue = 1

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
 
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"

strValueName = "ProxyEnable"
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

msgtxt = "THE PROXY SERVER HAS BEEN "
if dwvalue = 0 then msgtxt = msgtxt & "DISABLED"
if dwvalue = 1 then msgtxt = msgtxt & "ENABLED"

intmsg = msgbox(msgtxt,vbOKOnly+vbInfo,"Done")
Give a couple of popup messages too.
  Reply With Quote
Old 05-03-2007, 03:37 PM   #8
 
mac_shinobi's Avatar
 
Join Date: Aug 2005
Posts: 4,172
uk
Thanks: 307
Thanked 310 Times in 290 Posts
Rep Power: 64 mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

with the advanced proxy changer that I posted above it takes effect with currenty open IE windows as well, so no need to close down and re open

Proxy Changer is the same from what I have seen as well, both free too
  Reply With Quote
Old 05-03-2007, 03:39 PM   #9
 
GavRob's Avatar
 
Join Date: May 2006
Location: West Kirby
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 GavRob is an unknown quantity at this point
Default Re: Proxy switch "proxy on" & " proxy off" software

Thank you everyone.

so which method is the best ?

This will give me somthing to do this afternoon
  Reply With Quote
Old 05-03-2007, 03:41 PM   #10
 
mac_shinobi's Avatar
 
Join Date: Aug 2005
Posts: 4,172
uk
Thanks: 307
Thanked 310 Times in 290 Posts
Rep Power: 64 mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

Quote:
Originally Posted by GavRob
Thank you everyone.

so which method is the best ?

This will give me somthing to do this afternoon
Try them out and post back and let us know which you think is best
  Reply With Quote
Old 05-03-2007, 04:32 PM   #11
 
GavRob's Avatar
 
Join Date: May 2006
Location: West Kirby
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 GavRob is an unknown quantity at this point
Default Re: Proxy switch "proxy on" & " proxy off" software

Have had a play and "advanced proxy manager" gets my vote, does exactly what i want and is easy to use
  Reply With Quote
Old 05-03-2007, 05:32 PM   #12
 
mac_shinobi's Avatar
 
Join Date: Aug 2005
Posts: 4,172
uk
Thanks: 307
Thanked 310 Times in 290 Posts
Rep Power: 64 mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of mac_shinobi has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

do you know what version of dot net it needs to run smoothly, cos when I use it , It sometimes crashes out :-S

Ive already installed dot net 1.1 so am gonna try 2.0. Am guessing its 2.0
  Reply With Quote
Old 12-03-2007, 01:28 PM   #13
 
monkeyx's Avatar
 
Join Date: Nov 2006
Posts: 329
uk
Thanks: 6
Thanked 42 Times in 34 Posts
Rep Power: 16 monkeyx is a jewel in the rough monkeyx is a jewel in the rough monkeyx is a jewel in the rough
Default Re: Proxy switch "proxy on" & " proxy off" software

ops:
  Reply With Quote
Old 12-03-2007, 03:23 PM   #14
 
tom_newton's Avatar
 
Join Date: Sep 2006
Location: Leeds
Posts: 1,958
uk uk yorkshire
Thanks: 171
Thanked 260 Times in 194 Posts
Rep Power: 59 tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of tom_newton has much to be proud of
Default Re: Proxy switch "proxy on" & " proxy off" software

Just FYI, you can use a *local* proxy.pac which changes the proxy depending on the local domain/IP etc.

Having said that I never got mine past "experimental" so YMMV.
  Reply With Quote
Old 12-03-2007, 03:45 PM   #15
 
mortstar's Avatar
 
Join Date: Jan 2007
Location: Coventry (on loan from Lancashire)
Posts: 331
uk uk lancashire
Thanks: 11
Thanked 27 Times in 16 Posts
Rep Power: 11 mortstar will become famous soon enough mortstar will become famous soon enough
Default Re: Proxy switch "proxy on" & " proxy off" software

I use a very similar setting as Irazmus.

A proxy.pac file, stored on the school site. Teachers laptops point at this file in "Use Automatic Configuration Script". If their IP is on our range then they go through our proxy. If not they have direct access to the net.

Works a treat for all those who want to use their laptops for internet at home.
  Reply With Quote
Reply

EduGeek.net Forums > Technical > Network and Classroom Management

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Linux carries significant risk" --County's official line dustmite *nix 31 30-06-2008 10:03 AM
Install software if computername contains "teacher" j17sparky Scripts 3 07-11-2007 10:51 AM
Office 2k3 "Insert Image from File" and "Mail Merge" prob Gatt Windows 6 28-09-2006 07:06 PM
Offline File Sync"Access Denied" error message. eean Windows 2 13-06-2006 09:22 PM



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

Advanced Search

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

BB 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 +1. The time now is 08:53 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2009 EduGeek.net
SERVER: 4
no new posts