1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPA referral thoughts....

Discussion in 'PHP & Perl' started by izman, Jun 3, 2009.

  1. izman

    izman Newbie

    Joined:
    Apr 25, 2009
    Messages:
    12
    Likes Received:
    1
    Hi all!

    Been a programmer for a long time. Aside from Java, though, I'm new to Web development. I see a lot of people having issues with CPA networks when they utilize gray/black hat techniques were used to drive traffic. Everyone's trying to hide or fake their referral. I'm curious.... can something like the following be handled in PHP or JavaScript? I don't have the test boxes set up to try it, otherwise I'd experiment first and share my results.

    First - when you have a web page and a user clicks your CPA link, the web page where the link was clicked is your referral URL.

    Now, what if your web page were simply built with PHP? What if that page simply loaded the CPA ad? ex: visitor goes to homepage.com/mypage.php the php actually opens and loads the cpa offer page. The page the user requested (mypage.php) is dynamically built with the CPA page - using INCLUDE or something.

    Question here - what is the referral URL the CPA network sees? Is it homepage.com/mypage.php?

    Now, lets say you have a second page. somesite.com/anotherpage.php. If THIS page, loads your first page (mypage.php - which in turn loads the CPA ad) - do the CPA networks still see the original referral (homepage.com/mypage.php)?

    Not talking redirects here - just something similar to a PHP include or something.

    Would love to hear how this works. Thanks!

    Iz
     
  2. minimalistic

    minimalistic Newbie

    Joined:
    Mar 3, 2009
    Messages:
    4
    Likes Received:
    0
    Occupation:
    Freelance Developer
    Location:
    Portugal - Pêra
    The referral is the page that originates the click. I the browser see anotherpage.php, it doesn't matter if it has 100 nested includes. that's server side. except if instead of include, the developer used redirects. In that case browser will see what's in the url. if it redirects, the page changes, hence, the referral.

    If the page is the same, if we load ads with ajax (for instance) without reload the page, the referral will be the same.

    Any question, feel free to drop me a note Iz :)
     
  3. underplay

    underplay Newbie

    Joined:
    Jan 13, 2009
    Messages:
    27
    Likes Received:
    1
    Link->Your Site/youroffer.php->Your site/out.php->Aff link

    They will see out.php

    You can use javascript combined with php to completely hide the referer by using a double meta fresh, which makes FF reload the page without any referer(if you do double).
     
  4. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    I did this to fake my refferer. I made mysite.com/ad1.php and mysite.com/ad2.php. I wanted it so that when they went to ad1.php it would take them directly to the offer like they click it but showed ad2.php as the refferer. So I couldnt just add a redirect to ad2.php cause if my AM went there it would redirect them. So All my Adsense traffic goes to ad1.php that puts a cookie in there browser then redirects them to ad2.php. ad2.php checks if the cookie is there if it is it deletes it and redirects to the offer. If it isnt there the php code stops. So anyone going straight to ad2.php will just see my normal ad. Anyone that goes to ad1.php will be sent to ad2.php then on to the offer like they clicked it. It will then show the refferer as ad2.php and the cpa company knows nothing of the ad1.php that your actually sending all your traffic to.
     
    • Thanks Thanks x 1