IP Blockage using PHP - tuts nano

Someone got an approved Google AdSense account, and they started displaying ads onto their site. But on the third day, they were banned for invalid clicks. The reason they guessed was, multiple clicks from their own public IP can ban them –  though they are not so sure. It can happen while multiple user in multiple computers using a same internet connection. When they are clicking google tracked them as the same person who registered the AdSense account.

Okay, this can be one scenario, but you may face situation like this, when you may need to block certain things to certain IP addresses. Here’s the code snippet (charm! 🙂 ) that can save you.Continue reading