HARNOvHARNO Posted April 23, 2005 Posted April 23, 2005 (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 April 23, 2005 by HARNOvHARNO
nobby Posted April 23, 2005 Posted April 23, 2005 Look for firewalls, there are lots of good free ones. CheersNobby
kloyenz Posted April 23, 2005 Posted April 23, 2005 hello, you can block ips by putting them in your hosts file and redirect them to your own local IP
HARNOvHARNO Posted April 24, 2005 Author Posted April 24, 2005 (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 April 24, 2005 by HARNOvHARNO
CyberSlug Posted April 24, 2005 Posted April 24, 2005 Information here might help:http://www.tek-tips.com/viewthread.cfm?qid=1034707&page=1(last post at site sounds promising) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
kloyenz Posted April 24, 2005 Posted April 24, 2005 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 :-)
Greenseed Posted April 25, 2005 Posted April 25, 2005 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.
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