| Author |
Topic Search Topic Options
|
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
Topic: ASP or ASP.NET proxy script 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.
|
|
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
huwnet
Senior Member
Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
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?
|
|
|
 |
maffew
Newbie
Joined: 17 August 2005
Status: Offline
Points: 1
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |