Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP or ASP.NET proxy script
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP or ASP.NET proxy script

 Post Reply Post Reply Page  12>
Author
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
maffew View Drop Down
Newbie
Newbie


Joined: 17 August 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote maffew Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.