Come posso disattivare la reindirizzazione onebox?

Hello,

Consider a situation for an affiliate marketer…

where path http://x.com/go/discourse/ is HTTP 301 to https://discourse.org/ref=1 again HTTP 301 to https://discourse.org/

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 http://x.com/go/*

I want when I type http://x.com/go/discourse/ link should be as it is without modification.

Thanks

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 Mi Piace

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

Onebox Blacklist option is not working. Ref: video
https://www.useloom.com/share/f196f419ade04167b5e8a18b1c6f1126

Can you repro this @jomaxro?

1 Mi Piace

I can sort-of repro this.

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.

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

1 Mi Piace

www.gulshankumar.net isn’t an internal onebox. Discourse appears to be at help.gulshankumar.net - www.gulshankumar.net appears to be a WP site.

2 Mi Piace

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.
https://meta.discourse.org/t/how-can-i-stop-redirection/81515/12?u=mittineague

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.
https://meta.discourse.org/t/how-can-i-stop-redirection/81515/12?u=mittineague

1 Mi Piace

Hello,

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.

https://www.gulshankumar.net/go/any-product-name/

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.

2 Mi Piace

@codinghorror Sto riscontrando lo stesso problema di base sul mio forum; mi chiedo se esista già un modo per forzare la blacklist onebox a funzionare sui domini fratelli, per favore?

Nel mio caso ho forum.x.org e archive.x.org. Quest’ultimo utilizza il forum come provider SSO per consentire l’accesso. Quando si inserisce un URL dall’archivio, viene oneboxato e l’URL viene reindirizzato fino a un link forum.x.org/session/sso_provider?sso=....., che se cliccato porta a una pagina di errore.

@codinghorror Ah, ho appena controllato qualcosa stamattina e sembra che accada solo per i link che erano stati inseriti in un onebox (con un link reindirizzato errato) prima che inserissi il dominio dell’archivio nella blacklist dei onebox. Quindi deve esserci una cache dei onebox? Sai come rimuovere i link da quella?

Puoi aggiungere una stringa di query come

example.com/link?x

Se vuoi forzare l’interruzione della cache.

2 Mi Piace

Grazie, è utile saperlo. Sembra che sia uscito dalla cache da solo in tempo, quindi ora è risolto, ma è utile per eventuali problemi futuri.

2 Mi Piace