Remove Third-party Referrers

Discussion in 'Mac OS X System & Mac Software' started by Curiosity, Jun 19, 2017 at 2:30 PM.

  1. Curiosity

    Curiosity
    uix_expand uix_collapse
    Registered

    Joined:
    Aug 23, 2006
    Messages:
    427
    Likes Received:
    0
    Is there any way to use a script to remove third-party referrers from a browser's request headers? There is no extension for Safari that I could find that could do that, so I was looking for a script for Tampermonkey. I was unsuccessful. Can a script not do that? The script would have to deal not only with anchors, but also with links and scripts.
     
  2. Cheryl

    Cheryl
    uix_expand uix_collapse
    Rosie Moderator
    Staff Member Mod

    Joined:
    Dec 26, 2001
    Messages:
    4,392
    Likes Received:
    87
    Have you tried Ad Block? That does a pretty good job of removing much of what is not from the original page.
     
  3. Curiosity

    Curiosity
    uix_expand uix_collapse
    Registered

    Joined:
    Aug 23, 2006
    Messages:
    427
    Likes Received:
    0
    I am talking about what is in the browser's request header, not about web page content. I use uBlock, which does a good job of removing ads.
     
  4. Cheryl

    Cheryl
    uix_expand uix_collapse
    Rosie Moderator
    Staff Member Mod

    Joined:
    Dec 26, 2001
    Messages:
    4,392
    Likes Received:
    87
    The browser’s request header? Do you mean the address/search bar? Can you do a screen shot showing an example?
     
  5. Curiosity

    Curiosity
    uix_expand uix_collapse
    Registered

    Joined:
    Aug 23, 2006
    Messages:
    427
    Likes Received:
    0
    This is a sample request header from SeaMonkey to the web server for this site:

    https://macosx.com/threads/remove-third-party-referrers.324896/#post-1535499

    GET /threads/remove-third-party-referrers.324896/ HTTP/1.1
    Host: macosx.com
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en
    Accept-Encoding: gzip, deflate, br
    Referer: https://macosx.com/
    Cookie: xf_user=79417%2Cb0649f519374b305ecbd8ca2fa34dd33cbd3e59a; xf_session=0173d6c8f1175ed1975a26ef3e96b7bd
    DNT: 1
    Connection: keep-alive
    Upgrade-Insecure-Requests: 1
    Pragma: no-cache
    Cache-Control: no-cache

    In this case, the Referer is a first-party request field.
     

Share This Page