Adsense Blocking IP


Maybe there are many publisher/webmasters out there worried about invalid clicks being generated at their Adsense ads. Maybe if they’re using monitoring software or tracker script, they could minimize the chance of invalid click(s) being generated.

If there are any visitors have suspicious activities inside your webs (which you’ve got from your tracking script), then you should report about this case to Google Adsense Support Team immediately and provide’em with the tracking report. They would take a notice for your case and would make any review to your site.

When you’ve found the suspicious activity from any IP Address which used by your visitors, you should write it down and block those IP Address for accessing your site. While Google Adsense can’t block the IP Address for you, it would be your responsibility to make safe your account by blocking the suspicious IP Address by yourself.

Here are the script for blocking the IP Address which I’ve already created for every publishers/webmasters who wants to protect their website from any IP Address.

This script is using javascript language which can be implemented at any webpage.

You should put this codes inside the <head> Section of your webpage :

<script type=”text/javascript”>

//input the IP list, separated by commas
var bannedips=[”23.23.23.23″, “11.11.11.11″]

var ip = \’<!–#echo var=”REMOTE_ADDR”–>\’
var handleips=bannedips.join(”|”)
handleips=new RegExp(handleips, “i”)

if (ip.search(handleips)!=-1){
alert(”Sorry, you are not allowed visiting this site…. Redirecting !”)
// Put your alert here.

window.location.replace(”www.angellica2017.com”)
// Blocked IP will be automatically redirected to www.angellica2017.com

</script>

Maybe this script is simple looks like. But the effect is very useful for any publishers/webmasters who don’t wanna lose their earnings in adsense because of any invalid click activities which being generated by their visitors who don’t like’em or don’t like their sites.


Tags: , , , , , , , , , , ,


Bloom in ADSENSE |
Thursday, February 15th, 2007
Related Post:
Why We Must (NOT) Block Low Paying Ads ?
How to block IP Address to prevent invalid clicks and sabotage clicks?
Requirements to Get Approved on AdSense

2 Responses to “Adsense Blocking IP”

  1. robin Says:

    my adsense account has been disabled for invalid clicks, i did suspect sabotage activity and informed google accordingly. Anyway whats gone is gone and I wonder if they will reconsider, but iI ma pretty inncoent in this matter. I liked your site, ill be back. Cheers

  2. Adsense - Which Ads Pay The Most - SEOUsers » Web Marketing News Says:

    […] This script is using javascript language which can be implemented at any webpage.You should put this codes inside the Section of your webpage : (more?) […]

Leave message (spam will be banned) :

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>