A user seeks to prevent oneboxing and redirection for affiliate links, specifically for URLs like http://x.com/go/discourse/, which redirect through multiple 301s and cause revenue loss. user1 suggests using the Onebox Domains Blacklist in settings, but the feature fails to block oneboxing for certain domains, including the user’s own site user14. jomaxro confirms the issue occurs even when domains are correctly added to the blacklist, possibly due to caching or misconfiguration. Mittineague clarifies the intent is to preserve referral links without oneboxing, and knewt reports a similar issue with sibling domains, noting that onebox cache may need clearing via query strings to resolve the problem codinghorror.
Entering meta.discourse.org into onebox domains blacklist correctly prevents oneboxes of meta.discourse.org links. However, entering gulshankumar.net and www.gulshankumar.net into the setting does not prevent the oneboxing of https://www.gulshankumar.net/go/sucuri-website-firewall.
I appreciate your curiosity, why I wouldn’t like Onebox. The major issue is redirection which happens due to Onebox.
Basically, to keep affiliate URLs short, memorable and easily managed at one place, I use redirection. I use Affiliate Link Lite plugin to convert ugly affiliate link to the branded form.
@codinghorror I’m hitting this same basic issue on my forum, wondering if there’s yet any way to force the onebox blacklist to work on sibling domains please?
In my case I have forum.x.org and archive.x.org. The latter uses the forum as an sso provider to allow entry. When entering a url from the archive, it gets oneboxed, and the url gets redirected as far as a forum.x.org/session/sso_provider?sso=..... link, which if clicked on then results in an error page.
@codinghorror Ah, I’ve just checked something this morning, and it only seems to be doing it for links that had been oneboxed (with a bad redirected link) before I put the archive domain into the onebox blacklist. So there must be a onebox cache? Any idea how to remove links from that?