Anonymiz Link Anonymizer for XenForo 2.2+
=========================================

Sends external links in posts through Anonymiz, so linked sites don't see which
thread the visitor came from. Links are rewritten when a post is displayed;
stored posts are never changed.

Install
-------
Option A (XenForo 2.1+): Admin CP > Add-ons > Install/upgrade from archive,
and choose this zip.

Option B: upload the contents of the "upload" folder to your forum's root, then
Admin CP > Add-ons, find "Anonymiz Link Anonymizer" and click Install.

Settings: Admin CP > Setup > Options > Anonymiz Link Anonymizer.
- Anonymize external links: on/off.
- Domains to leave alone: one per line (subdomains included).

How it works
------------
It extends XF\BbCode\Renderer\Html and rewrites the URL in getRenderedLink(),
which XenForo uses for every [URL] link, including URLs auto-linked when a
post was saved.

Please check when testing
-------------------------
This add-on has only been tested against a stand-in for XenForo's classes,
because XenForo itself was not available in the build environment.
- Post a link to an outside site: hover it, it should point to https://anonymiz.com/?...
- Click it: you land on the original site after the Anonymiz redirect page.
- Links to your own forum stay unchanged; excluded domains stay unchanged.
- Rich link previews ("unfurled" link cards) use a different code path and are
  NOT rewritten in this version. Check how they appear on your forum.
- If another add-on or XenForo's own link proxy (Options > Image and link
  proxy) also rewrites links, test them together; use only one if they clash.
- If installing shows an error mentioning getRenderedLink, send us the message:
  it means your XenForo version declares the method differently.
