Affiliate killer

No more Affiliate Link! Plz Original URL!

< Feedback on Affiliate killer


fbclid tracking parameter attached by Facebook

Facebook start to add every external URLs to have fbclid parameter to track users outside, for example.

Also, bunch of parameters that cached on some search engine (google) can search with fbclid keyword.

Posted: 2018-10-17

Put this code in your .htaccess file:

RewriteCond %{QUERY_STRING} "fbclid=" [NC] RewriteRule (.*) /$1? [R=301,L]

If you work in WordPress:

RewriteEngine On RewriteBase / RewriteCond %{QUERYSTRING} "fbclid=" [NC] RewriteRule (.*) /$1? [R=301,L] RewriteCond %{REQUESTFILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Posted: 2018-11-16
Edited: 2018-11-16

Hi I'm a hobbyist when it comes to this sort of stuff. I've added your code to my .htaccess in Wordpress and it works removing the fbclid stuff. But it goes to the root of my site rather than the blog. Do I need to add a little bit more?


current .htaccess code RewriteEngine On RewriteBase /blog/ RewriteRule ^index.php$ - [L] RewriteCond %{REQUESTFILENAME} !-f RewriteCond %{REQUESTFILENAME} !-d RewriteRule . /blog/index.php [L]

Post reply

Sign in to post a reply.