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

LVZ

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

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

Recommendations

1 members have recommended this reply (displayed in chronological order):

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