1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

CPA referral thoughts....

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

  1. izman

    izman Newbie

    Apr 25, 2009
    Likes Received:
    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!

  2. minimalistic

    minimalistic Newbie

    Mar 3, 2009
    Likes Received:
    Freelance Developer
    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

    Jan 13, 2009
    Likes Received:
    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 Regular Member

    Mar 3, 2009
    Likes Received:
    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