GPASID (Beta 0.07)

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 the fake pub-ID

  • Use pub-nnnnnnnnnnnnnnnn
  • Case incensitive

Scan pages for valid and invalid ID's:



Rightclick and Save Target As

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 */
// if ($file=='IgnoreThisFile1' || $file=='IgnoreThisFile2' || $file=='IgnoreThisFile3') continue;

Replace IgnoreThisFile# by a file name you wish to exclude.

--------------------------

2. At around line 42 find:

/* Uncomment this line to exclude dirs */
// if ($file=='cgi-bin' || $file=='images' || $file=='images2' || $file=='images3') continue;

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.
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.

--------------------------

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...
Run the script from subddirectories
Run the script at odd hours
Get a better/faster server ;)

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.



www.cartapacio.com