Jump to content

Recommended Posts

Posted (edited)

whell this might not be releted 100% to autoit but i am planing to make a program in autoit to block ips listet in a text file.

and alot of other functions witch i find usefull for what im doing.

i have been playing with the netstart -n command and i would also like my program to show those connections in a GUI, this is not the problem. the problem is how to get the information, and how to block a connection from an ip.

i would like to do it in the background without using the command promt.

Edited by HARNOvHARNO
Posted (edited)

this is about autoit right?

so what would i do with a firewall or host file?

is it relly that hard to make a script witch blocks a list with ips in it?l

i still want the script to run in the back without disturbing me..

so how dose a firewall like norton blok an ip in... lets sey 24 hours?

i gues autoit cant do it, but it can monitor for a connection with an ip from a list and then close it if found.... i would like my script to block the ip insted of monitoring for connections thou (ill might be forced to use c++ insted then)

but i still dont know how to monitor for a connection or block an ip..

the firewalls can do it, so this must mean that i can do it the same way by myself or?

if its to advanced to explain, then can you trow me a link where i can read about those things before i start programing my script?

Edited by HARNOvHARNO
Posted

i think if it is for blocking certain ips its easier to use a hosts file.

search for hosts on the internet and learn a little bit more of windows :-)

Posted

to drag you information from the command netstat type netstat -x -x >text.txt and grab the text file with autoit to take what you wan. and to block a ip adress im sure you can do that with a dllcall but i don't know this method, but i know that you can play with static route type route add iptoblock MASK 255.255.255.255 Gateway 192.168.0.2. the important think is that you must type a gateway in a private network. exemple if your private ip is 192.168.0.1 then type 192.168.0.100 if is not valid for a gateway it will work. and if you wanna block a url use the hosts file located in system32 folder you put www.microsoft.com 127.0.0.1 it will be blocked from accessing.

GreenseedMCSE+I, CCNA, A+Canada, QuebecMake Love Around You.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...