supergg02 Posted April 15, 2006 Share Posted April 15, 2006 (edited) Hi ! My goal is to allow internet connexion for only some website (a whilteList IP). Exemple: allow anly connexion to 209.73.177.115 (mail.yahoo.com) and block all other connexion. is it possible to do that with autoit ? Please help Thinks Edited April 15, 2006 by supergg02 Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 16, 2006 Share Posted April 16, 2006 Hi !My goal is to allow internet connexion for only some website (a whilteList IP).Exemple: allow anly connexion to 209.73.177.115 (mail.yahoo.com) and block all other connexion.is it possible to do that with autoit ?Please helpThinksI don't think AutoIT is the right tool. What you want is a proxy server, like Squid, running on a Linux box. I'm sure there are other options if you simply MUST give your money to Microsoft, but I assumed you wanted it to work... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 well it is possible, you could use netstat to get all the out going connections and then if there are any that arent going to that IP you could well i guess kill them but try use TCPclosesocket , its only a beta function so youll have to download beta Link to comment Share on other sites More sharing options...
Simucal Posted April 16, 2006 Share Posted April 16, 2006 (edited) Quick Fix Solution: In firefox set a proxy for ssl and http sites (Tools, Options, General, Connection Settings), to something that definetely won't work like "Prohibited Sites" and use port 80. Then on the "No proxy for these sites" list, you put you sites you want to allow, you can narrow it down by adding the specific url like www.autoitscript.com/autoit3/downloads.php or you can just specify a domain. Edited April 16, 2006 by Simucal AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
plastix Posted April 16, 2006 Share Posted April 16, 2006 if you just want to block a few specific sites (and have admin rights on NT-based OS) then you could consider modifying the HOSTS file to block the specific sites (which would be a cheap & cheerful method)... if you are going to block huge ranges, then HOSTS file isn't the way for you.Windows 95/98/Me c:\windows\hosts Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts Windows XP Home c:\windows\system32\drivers\etc\hosts Link to comment Share on other sites More sharing options...
supergg02 Posted April 16, 2006 Author Share Posted April 16, 2006 thinks for your help but all these solutions dont give me what i want.I need a solution that open internet connexion for only a given domaine ( List of IP).something like thisIF requeted IP is not in WhileListIPs then block internet connexion. Link to comment Share on other sites More sharing options...
Simucal Posted April 16, 2006 Share Posted April 16, 2006 Quick Fix Solution:In firefox set a proxy for ssl and http sites (Tools, Options, General, Connection Settings), to something that definetely won't work like "Prohibited Sites" and use port 80.Then on the "No proxy for these sites" list, you put you sites you want to allow, you can narrow it down by adding the specific url like www.autoitscript.com/autoit3/downloads.php or you can just specify a domain.This is what you want. No website will work unless you specifically ADD it to the "No proxy" list. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
supergg02 Posted April 16, 2006 Author Share Posted April 16, 2006 (edited) This is what you want. No website will work unless you specifically ADD it to the "No proxy" list.Ok but this is only if user use firefox ! user may use other browser or other exe to connect to internet so this is not a "global" solution. Edited April 16, 2006 by supergg02 Link to comment Share on other sites More sharing options...
ChrisL Posted April 16, 2006 Share Posted April 16, 2006 (edited) Free filtering software like net nanny http://weblocker.fameleads.com/ oruse something like CCProxy where you can specify a list of allowed IP's/domains http://www.youngzsoft.net/ccproxy/ Edited April 16, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
ELP22 Posted April 16, 2006 Share Posted April 16, 2006 ... expandcollapse popup#cs _________________ TCP Block WEB for autoit beta _________________ #ce ;#NoTrayIcon Dim $ConnectedSocket = -1 $g_IP = "127.0.0.1" #region BLOCK LIST ;---<<< blocked sites >>> $no_everything = "*" ; You can block all websites that arent allowed $no_msn= "http://msn.com" & "207.68.172.246" $no_myspace= "http://myspace.com" ;& ip address ;add more if you wish ;;;;; ;--- endsites ;--------------------- ;BLOCK $blocked = $no_msn & $no_myspace ;--------------------- #endregion lists #region ALLOWED LIST ;---<<< allowed sites >>> $everything = "*"; You can allow all sites that arent blocked $google= "http://google.com";& ip address $autoit= "http://www.autoitscript.com" ;& ip address $yahoomail= "http://www.mail.yahoo.com" & "209.73.177.115" ;add more if you wish ;;;;; ;---end allowed sites ;--------------------- ;ALLOW $allowed= $google & $autoit & $yahoomail ;--------------------- #endregion while 1 sleep(10); <depends on Internet connection????? disallow() allow() WEnd Func disallow() $MainSocket = TCPListen($g_IP, 65432, 100 ) If $allowed = -1 Then TCPAccept ($allowed) EndIf EndFunc Func allow() $MainSocket = TCPListen($g_IP, 65432, 100 ) If $blocked = -1 Then TCPCloseSocket ($blocked) EndIf EndFunc $blocked = TCPAccept($ConnectedSocket) If $blocked > 0 then msgbox(0,"Error", 'The connection has been reset') [code] Link to comment Share on other sites More sharing options...
supergg02 Posted April 16, 2006 Author Share Posted April 16, 2006 thinks a lot for your help ! I'll test these softwares and the autoit script ( I prefer autoit script because it is free Link to comment Share on other sites More sharing options...
supergg02 Posted April 16, 2006 Author Share Posted April 16, 2006 the autoit script dont work (no error but it block no thing) may be because i'm behind a router (LAN)... Link to comment Share on other sites More sharing options...
Phases Posted April 16, 2006 Share Posted April 16, 2006 Most broadband providers now provide you with software that will do this for FREE. (well, you pay for it through your service) Mine offers McAfee Security - which is subpar to other solutions but does the job well enough. You may want to check with them before spending a long time developing something to do it. Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 16, 2006 Share Posted April 16, 2006 Hi, or have a look at programs like WebWasher. I think the URL-filter should do the trick. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
supergg02 Posted April 17, 2006 Author Share Posted April 17, 2006 (edited) WebWasher, URL-filter and other firewall are designed to block a black list domaines or IP ! but what I need is a tools that filter all outcaming connexion to allow only a few IP or domaine (ie white list domaine or IPs)! Edited April 17, 2006 by supergg02 Link to comment Share on other sites More sharing options...
ChrisL Posted April 17, 2006 Share Posted April 17, 2006 thinks a lot for your help !I'll test these softwares and the autoit script ( I prefer autoit script because it is free The 2 softwares I provided links for are free [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
supergg02 Posted April 17, 2006 Author Share Posted April 17, 2006 (edited) No only weblocker is free and it work only for internet explorer ( so user may use other browser to bypass restirction) Edited April 17, 2006 by supergg02 Link to comment Share on other sites More sharing options...
Infinitex0 Posted April 17, 2006 Share Posted April 17, 2006 There is this one function called _Talk_To_Your_Kids just an idea. The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
supergg02 Posted April 17, 2006 Author Share Posted April 17, 2006 (edited) did you think a lot to have this wonderfull idea ? this topic may have other goal (administrator job or testing software witch you souspis it to send other thing than wath is designed for....) Edited April 17, 2006 by supergg02 Link to comment Share on other sites More sharing options...
NightGaunt Posted April 17, 2006 Share Posted April 17, 2006 (edited) The real question is Super, what is your purpose? If you are talking about a small business or corporation then you should really look at a proxy solution. I use one at home but that has more to do with learning then function (it also has cache's advantages but that is not relevent here). A proxy, almost any proxy, can block every IP you want it to from the user. And the user has no choice but to accept the proxy because it is their only way out to the internet. You already mentioned you are behind a router; setting up a proxy server is only 1 more step, you just have to learn how to do it. Edited April 17, 2006 by NightGaunt "I have discovered that all human evil comes from this, man's being unable to sit still in a room. " - Blaise Pascal 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