1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How traffic exchange sites spoof http_referer (blank referer)

Discussion in 'Programming' started by mi6hq, Apr 7, 2019.

  1. #1
    Hi
    SEMrush
    I am working on one project that's similar to traffic exchange or ptc site (but not 100% ptc or traffic exchange site). Where people will open sites like ptc or traffic exchange sites but problem is my site url is being forwarded as referral url for opened sites.

    Many traffic exchange sites offer to hide http_referer. I want to know how they do this so I may add this function in my script. This method should work for all browsers.

    Help me please.

    MI6
     
    Solved! View solution.
    mi6hq, Apr 7, 2019 IP
    SEMrush
  2. #2
    On a link:
    <a href="http://example.com" rel="noreferrer">Example.com</a>
    Code (markup):
    On an iframe:
    <iframe src="http://example.com/"referrerpolicy="no-referrer"></iframe>
    Code (markup):
     
    qwikad.com, Apr 8, 2019 IP
  3. mi6hq

    mi6hq Member

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Perfect. :D

    I tried this and its working. Can you please test my link with different testing sites if code is really hiding referrer for all browsers.

    http://idomaining.org/test/showreferraltest.php

    I opened few sites which show http_referer and all are showing nill.

    Test code please.

    MI6
     
    mi6hq, Apr 8, 2019 IP
  4. mi6hq

    mi6hq Member

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    I am trying to https://browserleaks.com/javascript in above test url but its not opening. Few sites are opening and few sites are not opening.

    tracemyip.org + detectmybrowser.com + whatismyreferer.com are opening

    What might be problem?
     
    mi6hq, Apr 8, 2019 IP
  5. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    5,938
    Likes Received:
    1,099
    Best Answers:
    22
    Trophy Points:
    400
    #5
    Works for me in Chrome, Opera, Firefox, Edge.
     
    qwikad.com, Apr 8, 2019 IP
  6. mi6hq

    mi6hq Member

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    I can't open following sites:

    https://dnslytics.com
    https://browserleaks.com/javascript
    https://www.computerhope.com/cgi-bin/systeminfo.cgi

    Please check these sites at your end.

    MI6
     
    mi6hq, Apr 8, 2019 IP
  7. mi6hq

    mi6hq Member

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    I added following tag as this is being used at one well known traffic exchange website:

    sandbox="allow-popups allow-same-origin allow-scripts allow-forms"

    but still its not working.
     
    mi6hq, Apr 8, 2019 IP
  8. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    5,938
    Likes Received:
    1,099
    Best Answers:
    22
    Trophy Points:
    400
    #8
    Could be that the webmasters chose that option (not to let their sites open in an iframe). The error say: dnslytics.com refused to connect.
     
    qwikad.com, Apr 8, 2019 IP
  9. deathshadow

    deathshadow Acclaimed Member

    Messages:
    8,976
    Likes Received:
    1,635
    Best Answers:
    233
    Trophy Points:
    515
    #9
    VERY good point.

    Generally though it's kind of a douche move to omit referrer... though to be fair "traffic exchange" being a sleazy bit of dirtbag tomfoolery the use of such stupid practices can hardly be considered out of the ordinary these days.
     
    deathshadow, Apr 15, 2019 IP