• ShortFuse@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    5 days ago

    No, if you click a link that brings you to or from a site your IP is logged

    No, clicked links that bring to a site do not log your IP. For that you would have to add some sort of JavaScript to intercept the click and then have some JavaScript execute a HTTP Request that passes that information (eg: HTTP POST). Then the IP can be grabbed via that request by the receiving server. Or more importantly, a tracking cookie.

    When clicking a link, the browser may add to Origin header on the HTTP request (HTTP HEAD/GET) that goes to the link’s server. Or the link itself can have UTM parameters, but there’s no guarantee that ever gets back to the original server.

    But the point is if you have a page with 1000 links on it, the server that serves you the page doesn’t know which one you clicked without JavaScript or reframing the link to go elsewhere, which is why this post exists.

    • JonsJava@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 days ago

      Put perfectly. Had I not been on mobile…I would have written it just as lazily as I did.

      Thanks for taking the time.