V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coinmask
V2EX  ›  程序员

cf 的 page transform 规则撰写请教

  •  
  •   coinmask · 2022-12-29 15:27:00 +08:00 · 452 次点击
    这是一个创建于 497 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有个 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 来解决?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3922 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:12 · PVG 08:12 · LAX 17:12 · JFK 20:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.