Shao Posted November 16, 2005 Share Posted November 16, 2005 Hello, I'd like to hinder that a pc connect to Internet. I think the best would be to block the PORT 80. Can you tell me how to do that with AutoIt ? Thank you very much, Shao Link to comment Share on other sites More sharing options...
w0uter Posted November 16, 2005 Share Posted November 16, 2005 give them a bogus proxy. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Shao Posted November 16, 2005 Author Share Posted November 16, 2005 give them a bogus proxy.Thank you very much.In my script, I have to hinder the computer to connect to Internet if a condition is not valid, else the computer can connect to Internet.So, How to give back again connexion to Internet after a disconnection by a bogus proxy (I think my computer doesn't use a proxy) ?Thank you,Shao Link to comment Share on other sites More sharing options...
maqleod Posted November 16, 2005 Share Posted November 16, 2005 Thank you very much.In my script, I have to hinder the computer to connect to Internet if a condition is not valid, else the computer can connect to Internet.So, How to give back again connexion to Internet after a disconnection by a bogus proxy (I think my computer doesn't use a proxy) ?Thank you,ShaoI used to work at a retail store that fixed computers and we had a proxy server, I wrote a script that would put the proxy into computers we worked on so we could run windows update and online virus scans and then a script that would remove the proxy once we were done, this is what I used:set proxy:RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", "168.94.74.68:8080") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "PROXYOverride", "REG_SZ", "<local>") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "00000001")remove proxy:RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", "") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "PROXYOverride", "REG_SZ", "<local>") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "dword:00000000")In your case, without a proxy server, the effect would be the opposite, adding the proxy would keep the computer from getting online and removing it would give it access again. [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Shao Posted November 17, 2005 Author Share Posted November 17, 2005 Thank you very much, I copy-paste it in my script and I try it. Link to comment Share on other sites More sharing options...
Shao Posted November 17, 2005 Author Share Posted November 17, 2005 I've just tried your script but it's not okay. Internet is always on. Is there any information that can be typed in regedit to stop internet connection ? Link to comment Share on other sites More sharing options...
scriptkitty Posted November 17, 2005 Share Posted November 17, 2005 One bad part of that approach, it is only for IE and the like. If you have say firefox it does absolutly nothing, same for many other games, applications, etc. You could disable thier network adapter AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now