你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/456-affiliate-killer/discussions/7808,源站連結 點此以跳轉

Affiliate killer

No more Affiliate Link! Plz Original URL!

< 脚本 Affiliate killer 的反馈

提问 / 留言

§
发布于:2018-10-14

fbclid tracking parameter attached by Facebook

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

https://www.youtube-nocookie.com/embed/6ycMxixcv6o?fbclid=IwAR1-PvvWst-YZogDmssBnZhODH_S1AEU055ZuuU0ZyYzGkr2VdwKrCZhviE https://www.youtube.com/watch?v=bMkQnpo_Ifg&fbclid=IwAR3K1YGiIOwaOIfGNwxlf6N1lPLnQWdIXddteubWRwHLp8FSJBOQ6JWNt8o

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

§
发布于: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 %{QUERY_STRING} "fbclid=" [NC] RewriteRule (.*) /$1? [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

§
发布于:2018-11-16
编辑于: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?

eg. domain.com/blog/

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

发布留言

登录以发布留言。