Free Advertising - Credit Cards - Personal Loans - Credit Card Consolidation - Internet Advertising

PDA

View Full Version : I need a script so that my friends...


daisukey
May 6th 2006, 8:08 pm
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.

daisukey
May 7th 2006, 12:51 am
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

jackburton2006
May 7th 2006, 12:54 am
Try this thread. The third post.

http://forums.digitalpoint.com/showthread.php?t=68128

daisukey
May 7th 2006, 1:00 am
ahh thanks jack.. you always seem to help me. I appreciate it.

tonyinabox
May 7th 2006, 3:43 pm
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? :D

daisukey
May 14th 2006, 1:47 am
hi guys, just got time to play with the coding.


<?php
$AdSenseTest = "pub-xxxxxxxxxxxxxxxx";
$AdSenseAccount = "pub-1234567891234567";
$callingIP = $_SERVER["REMOTE_ADDR"];
$myIP = "127.0.0.1";

if(ereg( $myIP, $callingIP)) { $AdSenseAccount = $AdSenseTest; }
?>

<script type="text/javascript"><!--
google_ad_client = "<?php echo $AdSenseAccount;?>";


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>

tonyinabox
May 14th 2006, 2:21 am
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

frisby
May 14th 2006, 8:51 am
Try this thread. The third post.

http://forums.digitalpoint.com/showthread.php?t=68128
And replace your code with code of "friend", so he will be banned. :D

bflora
May 14th 2006, 11:21 pm
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?

misohoni
May 14th 2006, 11:36 pm
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