ASP or ASP.NET proxy script
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15968
Printed Date: 31 March 2026 at 1:18pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: ASP or ASP.NET proxy script
Posted By: theSCIENTIST
Subject: ASP or ASP.NET proxy script
Date Posted: 24 July 2005 at 12:59pm
The problem:
Our new IT manager, had the brilliant idea to install WebBlocker on our main gateway server, this particular piece of software is very aggressive on what it blocks, basically is has a constantly updated list of Internet pages that contains stuff to be blocked; porn, racism you name it, not bad you may say, but it also blocks URLS that contain words like strip, naked and so on, so everybody in the building can't access some legit sites, so I thought, no problem, lets use a proxy server like proxify, it turns out it also blocks all known proxy servers, damn it, I have access to the main server and can tweak with it, but I will be caught as only 3 people can physically access it.
The solution: (I seek)
I would like to install at my home server, a script that will act as a proxy server, so all calls to pages are seen as ending at my server, it must encode the URL also, where can I find such script for ASP or ASP.NET? Or is it difficult to build one? Any pointers appriciatted.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Replies:
Posted By: Mart
Date Posted: 24 July 2005 at 1:40pm
you could probably build one yourself with a little regex and some System.Net.WebRequest'ing... But it would probably be easier to install linux and run a proxy server on that
|
Posted By: huwnet
Date Posted: 24 July 2005 at 5:48pm
It may be an agressive filter but surely if it is any good you will be able to exclude sites.
|
Posted By: theSCIENTIST
Date Posted: 24 July 2005 at 7:34pm
Mart:
I'm investigation System.Net.WebRequest and all it's properties, not sure if it will take me anywhere, as I'm not yet in .NET, but will try.
Why Linux? Aren't there free good proxy software for Windows?
huwnet:
The filter is one of the best I've seen, first it updates it's blocked list from external sources all the time, I can exclude sites, but then I'll have the IT manager asking me why I did that when he sees the logs from the filter, as he is the only only that can access the logs, and they are encrypted, so I can't change them or turn logs off.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: Mart
Date Posted: 25 July 2005 at 4:45am
|
Well I said linux because proxy capabilities come preinstalled with
most distros, for free. I'm sure there are proxy servers for windows.
Second looks at doing it in asp.net (or any other web based language)
makes me think that it would take you too long to write... You would
have to handle cookies, rewrite all urls inside the page to go through
your proxy, handle POST requests some how etc.
|
Posted By: theSCIENTIST
Date Posted: 25 July 2005 at 9:31am
I guess, if I make a page that shows external sites on frames or iframes, that would still be the the same as a call to the site directly, wouldn't it?
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: maffew
Date Posted: 17 August 2005 at 3:52pm
|
what was your solution for this? I am trying to do the same thing. I
installed a CGIProxy but it doesnt handle SSL. IFrames doesnt work because the
packets are still caught by the content filter (WebSense). Has to be a better
solution.
------------- "Rock on Chicago . . . Rock Over London. Napa, its the parts store." Wesly Willis
|
Posted By: theSCIENTIST
Date Posted: 17 August 2005 at 7:00pm
I haven't found a solution yet, will give this problem an in-depth review on my next work break in 2 weeks.
I realised that IFrames and redirects are futile because as you say packets are still caught. Rewriting URLs inside the page may also produce the same results, but I will try to ping-pong the request btw my domains or encode the URL and show into a frame.
If you find a solution or have an idea, please post it here.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: the boss
Date Posted: 18 August 2005 at 8:38am
retrive the pages via something like HTTP object often used to rewrite pages from other sites into yours.. i forgot what its called.. sh*t im having memory holes!! 
------------- http://www.web2messenger.com/theboss">
|
Posted By: dpyers
Date Posted: 18 August 2005 at 8:53am
Are you thinking about MSXML2.ServerXMLHTTP
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: theSCIENTIST
Date Posted: 18 August 2005 at 11:09am
the boss wrote:
retrive the pages via something like HTTP object often used to rewrite pages from other sites into yours.. i forgot what its called.. sh*t im having memory holes!! [IMG]height=17 alt=Cry src="http://forums.webwiz.net/smileys/smiley19.gif" width=17 align=absMiddle> |
The filter at my work place is called [ http://www.scansafe.net/scansafe/index.html - ScanSafe ] and sits at the gateway ISA server, all calls to the outside pass through this gateway and ScanSafe will analyse the requests, but I will try what you said very soon, will also try to call stuff from my SSLed area that calls other pages.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
|