Hello,
How to limit lua filter for a specific url, i tested but it seems does not working.
i tried 2 ways:
ACL:
acl acl_pagetomodify path -i -m beg /modifpages
filter lua.applymodify if acl_ pagetomodify
Variable:
acl acl_pagetomodify path -i -m beg /modifpages
http-request set-var(txn.tomodify) str(true)
filter lua.applymodify
In lua file i set:
function filter:start_analyze(txn, chn)
local my = txn:get_var(“txn.tomodify”)
if my then
print(‘######START#####LUA##################’…my)
filter.register_data_filter(self, chn)
end
end
How can i do to linit filter to specific url?
Thanks
1 post - 1 participant