如何拦截对特定页面的所有请求(例如 python)
How to intercept all requests to the specific page (on python for example)
假设我有一个向页面 api.ext.com/addWord
和 api.ext.com/getTranscr
发送请求的扩展
从哪里开始编写一个应用程序来拦截对一个页面的所有请求(该站点不会接收它们),但保留对其他页面的完整请求
感谢 Matthew,Linux 的答案是 iptables -I OUTPUT -p tcp -m string --string "POST /addword?port=1001" --algo kmp -j DROP
假设我有一个向页面 api.ext.com/addWord
和 api.ext.com/getTranscr
从哪里开始编写一个应用程序来拦截对一个页面的所有请求(该站点不会接收它们),但保留对其他页面的完整请求
感谢 Matthew,Linux 的答案是 iptables -I OUTPUT -p tcp -m string --string "POST /addword?port=1001" --algo kmp -j DROP