V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
coinmask
V2EX  ›  程序员

cf 的 page transform 规则撰写请教

  •  
  •   coinmask · Dec 29, 2022 · 751 views
    This topic created in 1216 days ago, the information mentioned may be changed or developed.

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1326 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:46 · PVG 07:46 · LAX 16:46 · JFK 19:46
    ♥ Do have faith in what you're doing.