Jump to content

How Allow Internet Connexion For Only A Given Ip Or Hosts (whitelist Ip)


Recommended Posts

I used to use a proxy.pac file many moons ago to accomplish something very similar to this. I just pointed the browser at the proxy.pac file and was able to use it to block ads, sites, certain types of downloads etc. Only worked for the browser though...

Link to comment
Share on other sites

ok it's easy to setup a proxy solution configure browser to use it...But other progs may use TCP/IP to connect internet directly (no ?)

I'm not expert but if there a solution to force my Ethernet card to use only a given proxy, so it my work for all process ?

Link to comment
Share on other sites

ok it's easy to setup a proxy solution configure browser to use it...But other progs may use TCP/IP to connect internet directly (no ?)

I'm not expert but if there a solution to force my Ethernet card to use only a given proxy, so it my work for all process ?

What you are looking for is a firewall. There are many freebies that let you do manual configurations. Try this link for a few ideas Firewalls

CheersNobby

Link to comment
Share on other sites

ok it's easy to setup a proxy solution configure browser to use it...But other progs may use TCP/IP to connect internet directly (no ?)

I'm not expert but if there a solution to force my Ethernet card to use only a given proxy, so it my work for all process ?

A firewall can work as well. Personal firewalls can certainly do this. The only reason I referenced the solution of a good Proxy is it can be set up server side. If you want the best protectino you can get you need to use a server, and run your individual connections through the server. Else the user can still easily bypass whatever protection you put on the machine. Especially if the user has Admin rights (which I assume they must or you could force them to only use IE and TCP/IP wouldn't be an issue). But to set up a proper server and load the correct software up and then configure it is well beyond the scope of this. The Auto-It script above seems the only auto-it solution.

"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

No only weblocker is free and it work only for internet explorer ( so user may use other browser to bypass restirction)

You read all the information did you?

http://www.youngzsoft.net/ccproxy/proxy-server-download.htm

CC Proxy is an easy-to-use proxy server software. The demo version can support 3 users and no time limitation.

I have used CCproxy on my kids PC, you can add a list of allowed only sites in either direct into the program or an external txt document.

Also that Weblocker is very good, if you dissable proxy server it closes the browser window down and switches it back on. Also you said it was for your kids so I guess it is on a PC which you have control over which browser they use / is installed. It may technically be "supported" by IE but you could try it and see what it does with which other browser you are using, also you could look at the proxy address that weblocker is using and set that in your other browser.

Link to comment
Share on other sites

A firewall can work as well. Personal firewalls can certainly do this. The only reason I referenced the solution of a good Proxy is it can be set up server side. If you want the best protectino you can get you need to use a server, and run your individual connections through the server. Else the user can still easily bypass whatever protection you put on the machine. Especially if the user has Admin rights (which I assume they must or you could force them to only use IE and TCP/IP wouldn't be an issue). But to set up a proper server and load the correct software up and then configure it is well beyond the scope of this. The Auto-It script above seems the only auto-it solution.

Just an idea, but do you have a DSL or Broadband router? Most of the ones out there can block URL's.

2¢

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

He doesnt want to block individual urls. He wants to only allow certain urls, and block the rest.

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

He doesnt want to block individual urls. He wants to only allow certain urls, and block the rest.

Right !! that is exactly what i mean !

The question is more that allow or not allow kids....Imagine other situations:

Like if you want to use a new mail software to access your mailbox and you suspect it to send your password silentely to an other server (ie. the autor server)... there are many other situation wich is a good idea to let only a white list IP connexion...

thinks for all your suggestions

Link to comment
Share on other sites

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

You can set up a SQUID proxy on any Pentium III or better machine you have laying around. It's free-as-in-beer and free-as-in-speach, and is very popular, so there are plenty of people out there to draw on for help. :(

There is also Squid-Guard, a filter/redirector/access controller. :)

:think:

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

I use that one... and _Supervision($periodic) :(

On occasion... _Grounding($time) :think:

yes communicating is good, works well with my girls, but since there are computers in there rooms, the boy tends to go to bed and after we all are sleeping hes up and on it.... so I understand both sides

Link to comment
Share on other sites

  • 4 weeks later...

Super,

I was actually working on something that does this. It isnt overly complicated and kinda hokey in how I approached it, but close to working. The premise is to have Autoit watch for the active window to be a browser window. Once that happens, it would check the address against a list of "good" URLs (compare root only). If the URL was not in the list, redirect the browser to a page on the system that indicates the URL is not allowed. Of course there are a number of potential issues with this, such as using a different browser, etc. However, that might give you a possible approach to your problem.

Reaper

Link to comment
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
 Share

  • Recently Browsing   0 members

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