How to put ads in proxified page for CGI proxy script

Written By: Keldorn Firecam
Date: 2009-10-31

When you open the CGIProxy script with notepad you may become overwhelmed at the sheer about code in it. That can be a problem if you are trying to figure out how to put avertisement banners into your proxy site that is running CGIProxy.

But in actuality its not too difficult to find the area of interest in the script. In a certain part of the script there an area that is the equivalent to a  PHP echo that contains the HTML for the Top form in the proxified page.


To begin:

First you will need a proper code editor. I suggest to use Notepad++ . Open up nph-proxy.pl with Notepad++ and go to line  7171 where you will see this.

 

 
 
return <<EOF ;
	<form name="URLform" action="$action" method="$method" target="_top"$onsubmit>
	<center>
	$table_open
	  Location via proxy:<input name="URL" size="66" value="$safe_URL"$onfocus /><input type="submit" value="Go" />
	$up_link  
	<a href="$safe_URL2"><font color="red">[Report a bug]</font></a>
	  <a href="$cookies_url" target="_top" style="color:#0000FF;">[Manage cookies]</a>  
	<font size="-1"><input type="checkbox" id="rc" name="rc"$rc_on /><label for="rc" style="display: inline"> No cookies</label>
	  <input type="checkbox" id="rs" name="rs"$rs_on /><label for="rs" style="display: inline"> No scripts</label>
	  <input type="checkbox" id="fa" name="fa"$fa_on /><label for="fa" style="display: inline"> No ads</label>
	  <input type="checkbox" id="br" name="br"$br_on /><label for="br" style="display: inline"> No referrer</label>
	  <input type="hidden" id="if" name="if" checked="true" />
	</font>
	$table_close
	</center>
	</form>
EOF



After </form> put your ad banner in a center aligned Div. Like this.

</form>
<div align="center"> "your ad code" </div>
EOF

Note: Make sure that EOF is on its own line and has not whitespace before it.

 

You will get this:



Articles

Why your Youtube proxy might be SnakeOil.

Quite often I would come across these forum topics at various places like proxy.org, where a person writes that they think there PHProxy or Glype proxy works with Youtube and that a plugin i


Update

I've noticed url.php file sometimes getting slow on this site, simply can't have that! I've fixed this by enabled memcached into the redirect url.php file.  So if


Welcome to the New Hidefinder

Do you Smell that? Its that new website smell you have been waiting for! Just joking, the owner of hidefinder, has been busy these past nearly 2 weeks,  designing and programming the ne


How to put ads in proxified page for CGI proxy script

When you open the CGIProxy script with notepad you may become overwhelmed at the sheer about code in it. That can be a problem if you are trying to figure out how to put avertisemen


What is cgi proxy?

CGIProxy is a script that acts as a HTTP or FTP proxy. It was created to help people over come censorship of information and to surf anonymously online. By installing it on a server, it can




From the directory

The best free proxy

Freesslproxy.com runs on faster servers loaded...
Free Proxy

Comprehensive list of free web-based proxies,...


Friends