有个 WP 的站点, 被某个边缘路由器自动加上 aff 链接, 多次投诉屏蔽无效, 打算通过 cf 的 page rule 来纠正.
目前已知所有被强行加上去的结尾?wpam_id=1, 打算任何只要?wpam_id=1 就强行改为?wpam_id=2 来避免 aff 被滥用.
目前攥写规则如下:
not starts_with( http.request.uri.path, "/wp-admin /checkout-2 /cart-2 /checkout")
query rewrite:
wpam_id=2
发现在 cf 缓存规则下,经常无法 check out, 我在想有没有最简洁的一种方法, 就是只要?wpam_id=1 就更改为?wpam_id=2 来解决?