Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Instagram "link in bio"
I have a problem with the “links in bio” we have in Instagram @nemeorg. On desktop browsers all works as intended, but when using the IG app on mobile devices (which is how most people visit the platform), I get a 403 error.
The link(s) look like https://www.neme.org/?utm_source=ig&utm_medium=social&utm_content=link_in_bio&fbclid=PAZnRzaAPs8DtleHRuA2FlbQIxMQBzcnRjBmFwcF9pZA8xMjQwMjQ1NzQyODc0MTQAAafl1JK196eNmoXAFo04FyvDOSSQj-hIYXA9JWwUdkQu-ywof2jYqnrAty_soA_aem_0rzS-didWHbO7vJT-rzn_Q and I’m scrutinising our htaccess file to locate what I have done to block them, but I see no issues.
We are currently having 2 open calls with the 3rd one coming soon so I’m panicking that we will not be able to properly disseminate them in the platform,
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Instagram "link in bio"
You can safely remove the fbclid=PAZnRzaAPs8DtleHRuA2FlbQIxMQBzcnRjBmFwcF9pZA8xMjQwMjQ1NzQyODc0MTQAAafl1JK196eNmoXAFo04FyvDOSSQj-hIYXA9JWwUdkQu-ywof2jYqnrAty_soA_aem_0rzS-didWHbO7vJT-rzn_Q part of the URL as that’s a Facebook-specific (and session-unique).
What happens if you just link to https://neme.org with no queries?
Offline
Re: Instagram "link in bio"
Likewise, the utm stuff related to Google Analytics v4, and I don’t see any evidence of GA4 on neme.org on first pass…so unless you’re using another analytics app that uses utm queries, you can ditch the utm stuff, too.
Offline
Re: Instagram "link in bio"
@gaekwad, those query strings are set by FB/IG after you insert the link in your profile (or in a post or whatever). X.com né Twitter does the same but less visibly in their t.co/ links
Yiannis, I vaguely remember you had previously problems with those FB/IG links leading to a 403, that led you to add some redirect in your htaccess. Details are fuzzy though and I couldn’t find the post where you mention this.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Instagram "link in bio"
phiw13 wrote #342454:
gaekwad, those query strings are set by FB/IG after you insert the link in your profile (or in a post or whatever). X.com né Twitter does the same but less visibly in their
t.co/links
Ah – I misread – I thought colak had set the target URL to be the lengthy one as specified in the OP. Thanks for clarifying.
Last edited by gaekwad (Yesterday 13:04:21)
Offline
Re: Instagram "link in bio"
What’s triggering the “Nice Try” text on your side? Is it a web application firewall or similar? I can reproduce the issue on Instagram for iOS, so I wonder if it’s the Instagram user agent that’s getting tripped up at your server end.
Offline
Re: Instagram "link in bio"
The only reason for ‘Nice Try’ is a too long URL. Try a greater value of max_url_len pref, maybe. It issues a 503, though, not 403.
Desktop browsers often remove tracking stuff from URLs (natively or via an extension), so the problem gets hidden. When I try to access www.neme.org/?utm_source=ig&utm_medium=social&utm_content=link_in_bio&fbclid=PAZnRzaAPs8DtleHRuA2FlbQIxMQBzcnRjBmFwcF9pZA8xMjQwMjQ1NzQyODc0MTQAAafl1JK196eNmoXAFo04FyvDOSSQj-hIYXA9JWwUdkQu-ywof2jYqnrAty_soA_aem_0rzS-didWHbO7vJT-rzn_Q, FF actually takes me to www.neme.org/?utm_source=ig&utm_medium=social&utm_content=link_in_bio.
Offline
Re: Instagram "link in bio"
etc wrote #342457:
The only reason for ‘Nice Try’ is a too long URL. Try a greater value of
max_url_lenpref, maybe. It issues a503, though, not403.Desktop browsers often remove tracking stuff from URLs (natively or via an extension), so the problem gets hidden. When I try to access www.neme.org/?utm_source=ig&utm_medium=social&utm_content=link_in_bio&fbclid=PAZnRzaAPs8DtleHRuA2FlbQIxMQBzcnRjBmFwcF9pZA8xMjQwMjQ1NzQyODc0MTQAAafl1JK196eNmoXAFo04FyvDOSSQj-hIYXA9JWwUdkQu-ywof2jYqnrAty_soA_aem_0rzS-didWHbO7vJT-rzn_Q, FF actually takes me to www.neme.org/?utm_source=ig&utm_medium=social&utm_content=link_in_bio.
Thanks so much guys. The problem was indeed the url length. In my prefs I had a max length of 200 characters which I had to increase to 260 until I come up with an htaccess rule to trim everything after link_in_bio.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Instagram "link in bio"
I am not sure your value of 260 is enough to cover URI of articles or sections. When I try1 with my own test domain and a link to an article I quickly reach 300+ characters.
The default is 1000 I think, which seems a little generous.
–^–
1 manipulating the URL you provided at the start of the thread
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
#10 Today 01:07:39
- peterj
- Member
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 110
Re: Instagram "link in bio"
A client was getting “nice try” clicking her link from IG. I took a while to track the issue down. The fbclid was 155 chars long, total of fb crap query parameters 219 characters. I bumped it to 300 in TXP Publish prefs, but will boost again after reading this.
Not sure when the default changed to 1000, but most of my sites pre ~2018 still have 200 max length. Working through them all now but perhaps the value could be updated in a future version of TXP, if the site is still on 200 char default?
Last edited by peterj (Today 01:27:27)
Offline
#11 Today 01:20:23
Re: Instagram "link in bio"
A long url also opens the doors for site hacks.
Added the following rule to the site’s htaccess instead, reverted to the 200 max characters, and all works as intended… for now:).
RewriteEngine On
# Remove tracking parameters but keep utm_ parameters as they are also used by txp
RewriteCond %{QUERY_STRING} ^(.*)&?(?:fbclid|gclid|msclkid)=[^&]*(?:&(.*))?$
RewriteRule ^(.*)$ /$1?%1%2 [L,R=301]
Does anybody know if other social media or newsletters such as mailcimp add any tracking strings? If so, let’s see how we can trim them.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline