How to place advertisements on top of proxified pages
December 5, 2007
Many people starting with online proxies may wonder how some proxies have advertisements on the top of all proxified pages. The goal of this guide is to show you how you can place advertisements, like adbrite, on top of proxified pages. Please remember that you cannot place adsense ads on proxified pages.
PHProxy
To place ads on top of proxified pages in PHProxy, start out by opening up “index.php” of your installation of PHProxy. Scroll down to the very bottom and find the following line:
$_url_form .= '</form></div>';Now simply place the advertising code between </form> and </div>. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).
CGIproxy
To place ads on top of proxified pages in CGIproxy, open the file “nph-proxy.cgi” of your installation of CGIproxy. Scroll down to a little past the middle and find the following lines:
$table_closeNow place the advertising code between </form> and EOF. If you scroll a bit farther you should see the same set of lines. Place the advertising code there too. Note: You do not need to replace any ‘ (single quotation marks) for CGIproxy.
</center>
</form>
EOF
Zelune
To place ads on top of proxified pages in Zelune, open the file “index.php” of your installation of Zelune. Scroll down to a little past the middle and find the following lines:
$string = $this->mass_replace($to_replace, $string);Now place the following code between the lines $string = $this->mass_replace($to_replace, $string); and return $string;:
return $string;
$adcode = '';Now place your advertising code between the ' (single quotation marks) in $adcode = '';. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).
$string = preg_replace('#\<\s*body(.*?)\>#si', "$0\n$adcode" , $string, 1);
BBlocked
To place ads on top of proxified pages in BBlocked, open the file “includes/template.php” of your installation of BBlocked. Scroll down to the end and find the following line:
print($output);Now place the following code above the line print($output);:
$adcode = '';Now place your advertising code between the ' (single quotation marks) in $adcode = '';. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).
$output = preg_replace('#\</\s*body(.*?)\>#si', "$0\n$adcode" , $output, 1);
What is this site?
Proxy toolbox aims to provide proxy owners with valuable tools like proxy templates, lists, and scripts. A useful blog is also available so you can be up to date in the proxy business.
Note: This article originally appeared at proxytoolbox.com, but that web site is no longer online. If you are the owner of this content and object to this placement, please contact me.


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks