nullrefer

Anonymous link generator

Anonymous link redirection. Referrer hidden, zero tracking.

Or just add any URL after the question mark: https://nullref.li/?https://example.com/page

How it works

Confidentiality

It prevents the destination website from knowing which page referred you to it. The referrer is stripped by both an HTTP header and a meta tag, then you're redirected instantly, even with JavaScript disabled.

Anonymity

It limits third-party advertising and analytical tracking. Analytics scripts on the destination site can't learn which page referred you there, reducing cross-site profiling by ad networks.

Privacy protection

No database, no cookies, no third-party scripts are involved, and redirect pages are never cached or indexed by search engines. Only your outbound link matters, nothing else is stored.

Integrate

Route every external link on your site through Nullrefer automatically. Internal links are left untouched.

Paste before </body>. Runs in the browser.

<script>
function nullreferLinks(domain = location.hostname) {
  const PREFIX = 'https://nullref.li/?';
  const NULLREFER_HOST = 'nullref.li';
  const SELECTOR = 'a[href]:not([data-nullref]):not([data-no-nullref])';
  // lowercase, no trailing dot, no "www."
  const normalize = host => host.toLowerCase().replace(/\.$/, '').replace(/^www\./, '');
  const base = normalize(domain);
  function processLink(a) {
    const raw = (a.getAttribute('href') || '').trim();
    // Only keep http://, https:// and //  (skips relative links, mailto:, tel:, #, javascript:...)
    if (!/^(?:https?:)?\/\//i.test(raw)) return;
    let url;
    try {
      url = new URL(raw, location.href);
    } catch (e) {
      return; // Invalid URL: leave the link untouched
    }
    const host = normalize(url.hostname);
    const isInternal = host === base || host.endsWith('.' + base);
    if (isInternal || host === NULLREFER_HOST) return;
    // setAttribute also works for SVG <a> elements, unlike a.href = ...
    a.setAttribute('href', PREFIX + url.href);
    a.dataset.nullref = '1';
    a.dataset.nullrefOriginal = url.href; // original link kept, handy for debugging
  }
  function processTree(node) {
    if (node.nodeType !== 1) return;
    if (node.matches(SELECTOR)) processLink(node);
    node.querySelectorAll(SELECTOR).forEach(processLink);
  }
  function start() {
    processTree(document.documentElement);
    // Content injected dynamically after the page has loaded
    new MutationObserver(mutations => {
      mutations.forEach(m => m.addedNodes.forEach(processTree));
    }).observe(document.documentElement, { childList: true, subtree: true });
  }
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', start, { once: true });
  } else {
    start();
  }
}

// Usage
nullreferLinks('yourdomain.com');
</script>

DMCA

If a generated link points to content that infringes your copyright, send a notice to contact@nullrefer.net. Your request will be processed within 48 hours.

Please include the concerned page URLs and explain the reason for the removal request.