Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

AdSense Limiter 0.1
#1

This script takes care of your AdSense account - protects it from crazy clicking people.
Requires MySQL database access.

Every visitor on your site gets logged (his IP/proxied IP combination is unique identifier). His three last access times are logged as well. If he gets your AdSense ad displayed three times in 60 minutes (adjustable), he won't see any more of them. The logging is paused till he gets another ad displayed.
The behaviour of the limiter: if the visitor gets ad at 13.05, 13.10 and 13.15, he can see another one at 14.05, and for another one he has to wait till 14.10.

There's more: no ads will be displayed to visitors coming from IP addresses of your local networks/subnets. You probably are behind a NAT and that would cause AdSense team think, that you cheat.

For testing purposes, you can create a cookie for your server named adsense_test with value of 1. Then, you will see unlimited number of ads, and you can even click them, if you're interested, and no displays/clicks will be counted at AdSense servers.


There is one disadvantage though. The visitor can crawl trough your site for a longer time and when he finally wants to leave, he won't see another option, than to close the window.

Be noticed, that it is designed for only one ocurrence of ad per page.


Installation:
  • Extract the adsense.inc.php file from archive.
  • Edit the database access info, create table using query located in the file.
  • Edit your AdSense ID (replace pub-MMMMMMM).
  • Edit your default channel and color settings - $adsense['ch']
  • Edit the default width $adsense['w'], height $adsense['h'] and format $adsense['f'] code.
  • Include the file to target pages using include('/var/www/......./adsense.inc.php').
  • If required, modify the $adsense variables w, h, f or ch by setting them explicitly before the include line.
  • Create your testing cookie.


Attached Files
.rar AdSense-Limiter.rar Size: 1,63 KB  Downloads: 461

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply




Users browsing this thread: 1 Guest(s)