Preventing Adsense Theft

Discussion in 'PHP' started by tech86, May 22, 2006.

  1. #1
    Hey,

    I've recently been reading a lot about adsense theft on dP member's servers.

    I own a copy of Zend Encoder, so if any of the dP members want I can do this for them.

    Something like,
    <?
    $adsense_id = "pub_urid";

    echo "javascript google adsense codes";

    ?>

    Ofcourse this would be encoded in Zend.

    For further protection, somewhere down the page we could add,

    <?
    if (! $adsense_id == "pub_urid") {
    mail("you", "THEFT!!", "theft@yourserver.com");
    }
    ?>

    Pm me if anyone wants me to zend encode such scripts for them to prevent adsense theft.

    ;)
     
    tech86, May 22, 2006 IP
  2. Bartbos

    Bartbos Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Adsense theft? Never heard of it and this seems mighty strange.. :)
     
    Bartbos, May 27, 2006 IP
  3. nicedeals

    nicedeals Active Member

    Messages:
    679
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #3
    yeh elaborate on that plz..what is adsense theft..how do they do it?
     
    nicedeals, May 27, 2006 IP
  4. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The only way this kind of AdSense theft can occur is if your server is hacked. In that case, programming tricks will never save you from the need to secure your server and all the programs/scripts you are running.

    In simple terms, if I can hack your server, I can hack your fix.
     
    clancey, May 27, 2006 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Agreed... unless the theft is actually occuring on the client side, which I daresay most of it is (spyware changing the javascript, just like those apps that intercept your Amazon referral ID, for example). In this case your code wouldn't help, either.
     
    TwistMyArm, May 27, 2006 IP