Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
Something
pithy
this way
comes
Fuck
that
noise
You do not
want to
know
what I
think about

Is
TACO
Dead
Yet?


We have a
"pseudo"
presidency.
14th
Amendment
Section 3
bans him.
Drumpf
belongs
in prison



????????????
How did some
people get
stickies
to post?
????????????
Check out
all the stickies
on Grovelbot's
Big Board!

LVZ

(986 posts)
Fri May 23, 2025, 06:09 AM May 2025

Strip unwanted Facebook tracking code from links



Annoyed with posting links that add Facebook tracking codes?
To strip the code, I found a short Javascript URL redirect.


https://1-DOT.com/to/?example.com/?tag=OK&fbclid=REMOVE

Facebook example ( "Text added" ) -- https://facebook.com/groups/summerlin.outdoors/posts/1815748399369263

---

https://1-DOT.com/poplinks
7 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Strip unwanted Facebook tracking code from links (Original Post) LVZ May 2025 OP
K'n'R justaprogressive May 2025 #1
I don't understand how to use it? barbtries May 2025 #2
Example LVZ May 2025 #3
minor update LVZ May 31 #4
Facebook problem with FIX Las Vegas Mixx May 31 #5
So, sometimes a (Facebook) bug can also be a solution ... n/t LVZ May 31 #6
For website owners, add this to your .htaccess file LVZ Jun 5 #7

Las Vegas Mixx

(318 posts)
5. Facebook problem with FIX
Sat May 31, 2025, 01:42 PM
May 31

The redirect link works great except that Facebook does not add a thumbnail image to the post.
This may not be important but if it is, I have a fix (Facebook hack) that restores the post thumbnail.

Note that post #1 has no thumbnail image but post #3 has the image with the same redirect link.
The trick is to post the original link (#2). Then edit your post to erase the original link replacing it with the redirect link. Facebook will keep the old thumbnail image even though the link URL has changed.


LVZ

(986 posts)
7. For website owners, add this to your .htaccess file
Thu Jun 5, 2025, 12:40 PM
Jun 5

For your own website, add this near top of .htaccess file to strip Facebook tracking.


< IfModule mod_rewrite.c >
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*?)(&?fbclid=[a-zA-Z0-9_-]+)$
RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301]
< /IfModule >

NOTE: remove space after/before ... < and > characters ...

in use example: https://1-DOT.com/poplinks/?x&fbclid=REMOVE

Latest Discussions»Culture Forums»Open Source and Free Software»Strip unwanted Facebook t...