Chúc mừng Tết Trung Thu 15% off everything Shop the sale
Link Proxy guides
Beginner Link Proxy

Set up Link Proxy: the redirect page and your whitelist

Link Proxy sends external links through a warning page. Choose which content it covers, which domains skip it, and how long the page waits.

Updated 4 min read By the D.C Style team

On this page

Link Proxy sends external links through a warning page before visitors leave your forum. The page reminds them they are going to a site you do not control, shows where the link goes, and then continues automatically or waits for a click. It works as soon as it is installed. Setting it up is about three choices: which content it covers, which domains skip it, and how long the warning page waits. It works on XenForo 2.2 and newer.

What visitors see

When someone clicks an external link in a post, they land on a page titled "Please be careful..." that shows the address they are going to and a link back to the original content. By default it counts down for three seconds and then continues. Links to your own forum are never sent through this page.

The warning page only accepts addresses that really appear in the content they came from. Someone cannot craft a link that uses your forum's redirect page to send people to a site of their choosing.

Choose which content it covers

Go to Setup > Options > D.C Style - Link Proxy. Supported content types lists what it can handle:

  • XF:Post: posts in threads.
  • XF:ProfilePost: profile posts.
  • XFRM:ResourceUpdate: resource updates, if you run XenForo Resource Manager.
  • XFMG:Album and XFMG:Media: albums and media, if you run XenForo Media Gallery.

All are ticked by default. Links elsewhere, such as signatures or custom profile fields, are left as normal links.

Whitelist domains you trust

Domain White List holds domains whose links open directly, with no warning page. Your own forum is already skipped. Add the sites you trust, such as your company site, your documentation or a video site your members use all the time. The rules:

  • One domain per line.
  • example.com covers the domain and all its subdomains, so shop.example.com opens directly too.
  • .example.com, with a leading dot, covers only the subdomains, not example.com itself.
  • Leave out www.. Write example.com, not www.example.com.
example.com
youtube.com
.example.org

Tip: Keep the list short. Every domain you add is one your members reach without a warning, so add sites you would vouch for, not every popular site.

Set how long the page waits

OptionDefaultWhat it does
Enable automatic redirectionOnSends visitors on automatically. Turn it off to make them click Continue.
Auto redirection time3Seconds to wait before continuing automatically.

A short wait keeps the forum pleasant to use. Requiring a click is safer for communities where members are often targeted by scam links.

If links are not being proxied

  • Check the content type. Only the content types ticked in the options are covered.
  • Check the whitelist. A domain on the list, or a subdomain of one, opens directly by design.
  • Old pages from a cache. Links in pages served from a cache keep their old form until the cache refreshes. Changes not showing? explains where caches hide.
  • Another add-on uses the same address. The warning page lives at /redirect on your forum. If another add-on also uses /redirect, the two clash and one of them stops working. Disable the other add-on briefly to confirm: disable or uninstall an add-on.
  • The redirect page shows an error. Look in Logs > Server error log for the details: find the real error.

The redirect page follows your style, so its colours and fonts match the rest of your forum. More on the Link Proxy page.

Still stuck? Open a support ticket with your XenForo version, a link to a post whose link is not handled as expected, and your whitelist.

Did this guide help? Thanks! Glad it worked. Sorry about that. What went wrong? Thanks for telling us. We'll use it to improve this guide.

What went wrong?
Need a reply? Open a Link Proxy ticket instead.

Link Proxy

v1.1.5 Patch Level 4 · Free

Download free Product page → Ask about Link Proxy →