Hi guys, I need a script so that my friends in the same flat don't click on my ads. I have seen 2 scripts to stop showing ads from the same ip in this forums, I had tried one which didn't work. I'm looking for the other one, but I can't seem to find it anymore. Could someone help me? thanks.
hi guys plz help I can't seem to find what I want... Related links I found* How to stop yourself clicking your ads on Invision forums http://forums.digitalpoint.com/showthread.php?t=81496&highlight=block+ads
seem that your friends in the same flat always visit your website, uh? just wonder what kind of website. forum for people in the same flat?
hi guys, just got time to play with the coding. 1. "pub-xxxxxxxxxxxxxxxx"; xxxxxxxxxxxxxxxx is my client ID? 2. "pub-1234567891234567"; 1234567801234567 is where my client ID goes right? 3. Where do I put this code? in the <head></head>? or after the ?> <script type="text/javascript"><!-- google_ad_client = "<?php echo $AdSenseAccount;?>"; 4. The code seems to be missing </script> do I need it? 5, finally the final code should lookk like this? <script type="text/javascript"><!-- $AdSenseTest = "pub-my client id"; $AdSenseAccount = "pub-my client id"; $callingIP = $_SERVER["REMOTE_ADDR"]; $myIP = "my ip will b here"; if(ereg( $myIP, $callingIP)) { $AdSenseAccount = $AdSenseTest; } google_ad_client = "pub-my client id"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text"; google_ad_channel ="7722011399"; google_color_border = "F4F4F4"; google_color_bg = "F4F4F4"; google_color_link = "7F7F7F"; google_color_url = "940F04"; google_color_text = "808080"; //--></script> <script type="text/javascript"><!-- google_ad_client = "<?php echo $AdSenseAccount;?>"; src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code (markup):
here I give you a hint. - use a dynamic dns free service. [try dyndsn.com] - install a dynamic dns client on your computer. - your script checking ip address from the dynamic dns hostname compare with visitor ip address. - replace with a transparent.gif image if the ip address matched - display ads if not match - you have an option to make a script to set cookie only on your computer if you want to see the ads only on your computer. if you can't do the whole thing then hire me for $30 LOL
Is there any financial advantage to not having ads show on your own machine? i.e. less views and so a higher CTR on your ads if they're not displaying for you but only for other visitors?
Or suggest using something like Phpadsnew where you can rotate the ads, show the ads per hour, month etc., for each specific IP...might be a bit complex if you are novice