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
dje4321
(Dje4321)
2018 年 2 月 26 日午前 6:47
2
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.
「いいね!」 1
mpalmer
(Matt Palmer)
2018 年 2 月 26 日午後 12:41
5
You haven’t entered a domain in the domain blacklist.
Can you repro this @jomaxro ?
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
2018 年 2 月 27 日午後 9:21
9
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
jomaxro
(Joshua Rosenfeld)
2018 年 2 月 27 日午後 10:28
11
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
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
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
knewt
2019 年 12 月 13 日午後 10:29
15
@codinghorror 私のカムニティでも同じ基本的な問題に直面しています。兄弟ドメインに対して onebox ブックリストを強制的に機能させる方法はまだありますか?
私の場合、forum.x.org と archive.x.org があります。後者は SSO プロバイダーとして前者を使用してアクセスを許可しています。アーカイブからの URL を入力すると、onebox され、その URL は forum.x.org/session/sso_provider?sso=..... のようなリンクにリダイレクトされます。このリンクをクリックするとエラーページが表示されてしまいます。
knewt
2019 年 12 月 14 日午後 12:50
17
@codinghorror ああ、今朝確認したところ、アーカイブドメインを onebox 黒リストに登録する前に(誤ったリダイレクトリンクを含む)onebox 化されていたリンクに対してのみその現象が発生しているようです。つまり、onebox キャッシュが存在するに違いありません。そのキャッシュからリンクを削除する方法をご存知でしょうか?
キャッシュを強制的に無効化したい場合は、以下のようにクエリ文字列を追加できます。
example.com/link?x
「いいね!」 2
knewt
2019 年 12 月 17 日午前 1:13
19
ありがとうございます、参考になりました。どうやら時間とともに自動的にキャッシュから削除されたようで、今は解決しています。今後のトラブルに備えて、この情報は役立ちそうです。
「いいね!」 2