Google's Publisher-AdSense-ID Verification
In this demo:
pub-0000000000000000 is valid
pub-0000000000000001 is invalid
Copy&Paste pub-0000000000000000 (16 digits) and
click Scan
Copy&Paste your AdSense pub-ID
|
Scan pages for valid and invalid ID's: |
Results For:-- Invalid ID's in red -- | |
| Page | Contains ID |
|---|---|
";
echo "$read_tit[$a]";
echo "$results[$a]";
echo " | $read_txt[$a] |
$matchesID Google's AdSense scripts.
";
if ($mismatchesID > 0) {
echo ("
Warning! Possible violation! $mismatchesID AdSense scripts using unknown ID. ADSense scripts seems to be untouched. Use as is. No warranty implied. Installation Rename gpasid.txt -> gpasid.php
Upload the gpasid.php to the dir you wish to start the scanning. If at the root type: http://www.yoursite.com/gpasid.php Enter your pub-nnnnnnnnnnnnnnnn (pub- plus sixteen digits) See results. ============================================ Customizing (not really necessary): 1. At around line 35 find: /* Uncomment line to exclude files */ Replace IgnoreThisFile# by a file name you wish to exclude. -------------------------- 2. At around line 42 find: /* Uncomment this line to exclude dirs */ Replace/add folder names you wish to exclude. -------------------------- 3. If you wish to skip any file: place <!-- SKIPTHIS --> anywhere
on the top of the file. -------------------------- Testing I have tested the script in a shared Linux server, scanning 6000 pages
in 20 seconds at any time, even peak hours. -------------------------- Known issues: Timeout error. By default the PHP's timeout is set to 30 sec. Your site is too large, too slow, lacks of enough memory, is overcrowded
etc. Solution Ask your provider to increase the timeout parameter at php.ini. They are so nice... Recommendation Do not run GPASID too often in a slow server For security purposes, delete the script from the server after using it. Will respond quetions as time permits That's all.
");
} else {
echo ("
");
}
}
?>
// if ($file=='IgnoreThisFile1' || $file=='IgnoreThisFile2' || $file=='IgnoreThisFile3')
continue;
// if ($file=='cgi-bin' || $file=='images' || $file=='images2' || $file=='images3')
continue;
A second test in a not so
reliable server scanning 4000 pages getting 2 timeouts out of 3 scannings
at peak hours.
A third test in the same server, no timeouts at 4AM EST.
A fourth in another Linux shared server scanning 2500 files without timeout at any time.
Run the script from subddirectories
Run the script at odd hours
Get a better/faster server ;)