Article View: borland.public.cppbuilder.nativeapi
Article #14791Re: need suggestions
From: Yahia El-Qasem
Date: Sun, 03 Aug 2003 10:19
Date: Sun, 03 Aug 2003 10:19
32 lines
2439 bytes
2439 bytes
Is it necessary to filter all URLs or is it acceptable if someone bypasses the filter ( i.e. by removing / changing the proxy setting from their browser ) ? If the last is not ok you will have to setup a proxy system like some ISPs do : Put your proxy on a dedicated machine inbetween the network and the connection to the internet : internal router <-> your proxy <-> internet. the internal router should be configured to route all outgoing network traffic to your proxy... there you have the ability to filter everything you want even without any proxy setting in the user's browser... IIRC Indy comes with an example for a simple proxy server... perhaps this is a good starting point... If you can't do such a setup and need to run on the user's computer locally then you will have to write some sort of low-level filter ( below WinSock ) which really need a lot of time ( I don't know of any good library for this ) and is pretty hard to get working under a broad range of network setups... and the users could easily remove it ( depending on which OS is running )... If you need to filter any URL and not only HTTP then you will end up writing some sort "mini-firewall" which in turn will take a lot of time - IIRC there was a thread in .internet.winsock or so where somebody wanted to learn writing a firewall and got some links with firewall source code as a starting point. Yahia
Technical Details
Message-ID:
<3f2ce207$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f2cdeb9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,658fea45fa9e498d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-03 03:40:03 PST Reply-To: "Yahia El-Qasem" <Yahia.El-Qasemno.spam@mgh.metro-ag.de> From: "Yahia El-Qasem" <Yahia.El-Qasem@mgh.metro-ag.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f2cdeb9@newsgroups.borland.com> Subject: Re: need suggestions Date: Sun, 3 Aug 2003 12:19:14 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 217.230.121.113 Message-ID: <3f2ce207$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059906055 217.230.121.113 (3 Aug 2003 03:20:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail