Jump to content
Sign in to follow this  
Shao

HINDERING INTERNET CONNEXION

Recommended Posts

Shao

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

Share this post


Link to post
Share on other sites
Shao

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

Share this post


Link to post
Share on other sites
maqleod

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

I 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

Share this post


Link to post
Share on other sites
Shao

Thank you very much, I copy-paste it in my script and I try it.

Share this post


Link to post
Share on other sites
Shao

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 ?

Share this post


Link to post
Share on other sites
scriptkitty

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 B)


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.