How can I stop onebox redirection?


Consider a situation for an affiliate marketer…

where path is HTTP 301 to again HTTP 301 to

Problem is when I type first link, in onebox it automatically redirect to the final destination which is causing loss of revenue.

Please help me in disabling onebox and redirection for the specific path*

I want when I type link should be as it is without modification.


You should be able to goto Admin -> Settings -> Onebox -> Onebox Domains Blacklist to get the result you want

Thanks for the response.

I am sorry to inform, It’s not working. :frowning:

1 Like

You haven’t entered a domain in the domain blacklist.

Onebox Blacklist option is not working. Ref: video

Can you repro this @jomaxro?

1 Like

I can sort-of repro this.

Entering into onebox domains blacklist correctly prevents oneboxes of links. However, entering and into the setting does not prevent the oneboxing of

Wait so the OP wants to prevent SELF oneboxing? That’s really weird.

1 Like isn’t an internal onebox. Discourse appears to be at - appears to be a WP site.


Still this might be an unreasonable edge case if it is the same domain. Why wouldn’t you want to onebox your own stuff?

I think the intent is to post referer links without them being obvious referer links but still have them be referer links.

For example, preserving the “u=mittineague” query string.

I’m not certain about what kind of RewriteRule voodoo is going on or what domains are involved.

To me, the obvious solution would be to display the link as a link and not onebox it. eg.

1 Like


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.

What I am expecting, If I type my affiliate URL, Onebox shoudn’t display final destination instead of clocked path (which is /go/).

Exactly. Thanks for understanding.


@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 and 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 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?

You can add a query string like

If you want to forcefully break caching.


Thanks, good to know. Seems that it fell out of the cache on it’s own in time, so sorted out now, but useful in case of any future issues.