Avoid Ads From Showing Public Service Ads (PSA)

  • Author: admin
  • Filed under: Articles
  • Date: Nov 19,2008

For those who had problem in ads showing public service ads or PSA, I would recommend you to target your content. This can be done by wrapping your content with the code below

<!- google_ad_section_start ->
YOUR CONTENT HERE
<!- google_ad_section_end ->

What it will do is making that content known to the Adsense’s robots and all the ads shown on  your page will use certain keyword from the wrapped content.

Other way to avoid showing PSA on your Adsense is to use the alternate ad url that can be found when you are setting up a new ad unit. use other ad company such as Adbrite, Mediashakers, Canep Media etc as your alternate ads. So, whenever Adsense don’t have an ad to fill your inventory, it will show the alternate ads instead.

You can show your support by buying me a coffee


Ads on proxified pages

Too many people has asked me on several forums about this. Actually, setting up an ads in your proxified pages is very easy. All you need is to search for a few keywords/codes and put your ads in between them.

So, here we goes. I will write the method of how you can place your own ads in your proxy proxified page.

#PHProxy
Open up “index.php” and do a search for “url_form”. Then, you will find something like this,

$_url_form      = ‘<div style=”width:100%;margin:0;text-align:center;border-bottom:1px solid #000;color:#fff;background:#654d8d;font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans,arial,sans-serif;padding:4px;”>’
. ‘<form method=”post” action=”‘ . $_script_url . ‘”>’
. ‘ <label for=”____’ . $_config['url_var_name'] . ‘”><a href=”‘ . $_url . ‘”>Address</a>:</label> <input id=”____’ . $_config['url_var_name'] . ‘” type=”text” size=”80″ name=”‘ . $_config['url_var_name'] . ‘” value=”‘ . $_url . ‘” />’
. ‘ <input type=”submit” name=”go” value=”Go” />’
. ‘ [go: <a href="' . $_script_url . '?' . $_config['url_var_name'] . ‘=’ . encode_url($_url_parts['prev_dir']) .’ “>up one dir</a>, <a href=”‘ . $_script_base . ‘”>main page</a>]’
. ‘<br /><hr />’;

Put your ads in between <hr /> and ‘. So, your ads should be like this.

$_url_form      = ‘<div style=”width:100%;margin:0;text-align:center;border-bottom:1px solid #000;color:#fff;background:#654d8d;font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans,arial,sans-serif;padding:4px;”>’
. ‘<form method=”post” action=”‘ . $_script_url . ‘”>’
. ‘ <label for=”____’ . $_config['url_var_name'] . ‘”><a href=”‘ . $_url . ‘”>Address</a>:</label> <input id=”____’ . $_config['url_var_name'] . ‘” type=”text” size=”80″ name=”‘ . $_config['url_var_name'] . ‘” value=”‘ . $_url . ‘” />’
. ‘ <input type=”submit” name=”go” value=”Go” />’
. ‘ [go: <a href="' . $_script_url . '?' . $_config['url_var_name'] . ‘=’ . encode_url($_url_parts['prev_dir']) .’ “>up one dir</a>, <a href=”‘ . $_script_base . ‘”>main page</a>]’
. ‘<br /><hr />YOUR AD HERE‘;

To add your ad code in the footer, find this line of codes;

$pattern = “#</body>#i”;
preg_match($pattern,$_response_body, $matches);
$_response_body = preg_replace($pattern, ‘
</body>’, $_response_body); //the replace function

Then replace it with these;

$pattern = “#</body>#i”;
preg_match($pattern,$_response_body, $matches);
$_response_body = preg_replace($pattern, ‘
<!– START AD CODE –>
YOU AD CODE HERE
<!– END AD CODE –>
</body>’, $_response_body); //the replace function

#Glype

When you download the installation files, you will find “setup.php” in one of its folder. Upload that file and secure it with a password. In that file, you will see several options that you can set. Click on “Installation Options” scroll a bit until you see “Footer Include” section. Paste your ad code there. Don’t forget to wrap the code in center tag (<center></center>).

#CGI Proxy

This is the easiest thing to do. Open up your “nph-proxy.cgi” file with notepad, I use NotePad++ btw. Look for

$table_close
</center>
</form>
EOF

Your ad code should be placed in between </form> and EOF. There is 2 instances of this codes, so you need to insert your ad code in both instances.

#Zelune

I have not once tried Zelune script just yet. But according to my friends who used this script, to place ads in proxified page, you need to look for checkbox options. Scroll a bit down past checkbox options until you see form ends tag (</form>). Place your ad code there. Make sure to put backslash (\) before any quotation marks (”). For an example:

<a href=”http://www.example.com” />YOUR ADS HERE</a>

should be

<a href=\”http://www.example.com\” />YOUR ADS HERE</a>

So, here you goes. Let’s make monies out of proxies! For the webmaster who are looking a place to promote proxies, I invite you to submit your to our proxy listing directory that can be found <a href=”http://www.xytheme.com/proxy-sites/” />HERE</a>.

Good luck!

You can show your support by buying me a coffee