Navigation:    Home arrow How To arrow Running CGIProxy on IIS 6.0
Running CGIProxy on IIS 6.0 E-mail
Thursday, 16 November 2006
Article Index
Running CGIProxy on IIS 6.0
Installation
Installation Steps

Before we start, remember that you need to change http://www.443proxy.com that included in any url with your own website url.

There are a few files we need to download before we started:


Extract CGIProxy file nph-proxy.cgi to a folder inside your website folder and install ActivePerl to your server. ActivePerl installation is a breeze, run it and wait untill it complete. Now we must change some setting on our website properties on IIS MMC.

Start Internet Information Service (IIS) Manager and open your website properties. Next, we must make sure that Execute Permission on Home Directory tab is at least Script Only to allow CGIProxy to run. Then click on Configuration button to setup new extension mapping that point .cgi to be execute by Perlis.dll on your ActivePer installation folder. That's it, we are done.


Now it's time to test our installation. Open your CGIProxy on web browser. Type http://www.443proxy.com/cgi/nph-proxy.cgi. It should show CGIProxy form like in this screenshot. Do View HTML Source so we can copy HTML source from this form to put in our custom proxy page.


Options
To change CGIProxy options, open nph-proxy.cgi in a text editor. Don't use Word as it's tend to screw up formatting after saving and render CGIProxy not working anymore. I use UltraEdit-32 to do my text file editing. Put more attention on this options:
$INSERT_HTML = "" - Add your HTML code like back link to your site or ads.
$NO_BROWSE_THROUGH_SELF = 1 - Make sure to prevent the script from calling itself.

Remember to change http://www.443proxy.com text on the code to your own website, although I don't mind the traffics you may send to my way .

Hotlink Protection

Note: Only do this step if your site have a custom web page to start proxy access. To prevent others using your proxy without going through your custom web page, open nph-proxy.cgi and find "# Present the initial entry form" and insert this code:

 

if($ENV{'HTTP_REFERER'} =~ /^http:\/\/www.443proxy.com/)
{
}
else
{

    print "Status: 301 Moved Permanantly\n";
    print "Location: http://www.443proxy.com\n\n";
    exit;

 

See this image for the exact location. 

 

SSL Access on CGIProxy
To provide visitors with access to HTTPS/SSL website like Yahoo! Mail we must install two additional package:

  •  OpenSSL
  •  Net::SSLeay

Thankfully we can get this two package from one installation of Win32 OpenSSL . After Win32OpenSSL installation, we must run C:\OpenSSL\perl\5.8\Net_SSLeay\install.bat (or find the file on your Win32 OpenSSL installation folder) to activate NET::SSLeay package on our server. Last step is to change $RUNNING_ON_SSL_SERVER option on nph-proxy.cgi to 1 and make sure we access nph-proxy.cgi through https://.

Please note that I haven't been able to run CGIProxy on SSL mode because FreeSSL phone authentication is broken. They phone me but their automated phone audio is so soft, I can't hear anything (yes, I even yell something on the phone to start the procedure). I'll update this after I manage to pass the phone authentication procedure.

I hope this article can save you time trying to setup CGIProxy. Give it a try and start offering anonymous web-based proxy service to your visitors.

Update: SSL installation step is working. Now our web-based proxy is running on SSL secure mode.

Update: I just remember that you must copy C:\Perl\site\lib\Net\SSLeay.pm to C:\Perl\site\lib\Net\SLeay.pm in order to fix error on Net::SSLeay. Must be a typo on installation script.



Last Updated ( Thursday, 14 December 2006 )
 
Tag this to:
Delicious
Furl it!
Spurl
digg
Blinkbits
BlinkList
blogmarks
co.mments
connotea
De.lirio.us
digg
Fark
feedmelinks
LinkaGoGo
Ma.gnolia
Netvouz
NewsVine
RawSugar
Reddit
Shadows
Simpy
Smarking
TailRank
Wists
YahooMyWeb
< Prev   Next >

Main Proxy Menu

Home
Check Your IP/Proxy
- - - - - - - - - - - - - - - - - - - - -
CGIProxy
PHPProxy
- - - - - - - - - - - - - - - - - - - - -
How To
Proxy Resources
Web Proxy Directory
Search Article
Contact Us
Site Status
Report Abuse

Interesting Link

Avatar
Usenet

Search Proxy Listing

Proxy Usage Disclaimer

Terms of Service
Privacy Policy