How can I stop onebox redirection?

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개의 좋아요

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개의 좋아요

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개의 좋아요

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개의 좋아요

@codinghorror 제 포럼에서도 동일한 기본 문제가 발생하고 있습니다. 원박스(onebox) 블랙리스트를 자매 도메인에서도 작동하도록 강제할 수 있는 방법이 있는지 궁금합니다.

제 경우 forum.x.org와 archive.x.org를 사용 중입니다. 후자는 포럼을 SSO 제공자로 사용하여 접근을 허용합니다. 아카이브에서 URL을 입력하면 원박싱 처리가 되고, URL은 forum.x.org/session/sso_provider?sso=..... 링크로 리디렉션됩니다. 이 링크를 클릭하면 오류 페이지가 표시됩니다.

@codinghorror 아, 오늘 아침에 무언가를 확인해 보았는데, 아카이브 도메인을 원박스 블랙리스트에 추가하기 이전에 (잘못된 리디렉션 링크로) 원박싱된 링크에서만 그런 문제가 발생하는 것 같습니다. 그러면 원박스 캐시가 있는 건가요? 그 캐시에서 링크를 제거하는 방법을 아시는 분 계신가요?

캐싱을 강제로 무효화하려면 쿼리 문자열을 추가할 수 있습니다.

example.com/link?x

이처럼 쿼리 문자열을 붙이면 됩니다.

2개의 좋아요

고맙습니다. 알아둬야 할 좋은 정보네요. 시간이 지나면서 캐시에서 자동으로 제거된 것 같아서 지금은 해결되었지만, 향후 문제가 발생할 경우 유용할 것 같습니다.

2개의 좋아요