How to intercept all requests to the specific page (on python for example)

285 views Asked by At

Suppose I have an extension that send requests to pages api.ext.com/addWord and api.ext.com/getTranscr

Where to start to write an application that will intercept all requests to one page (the site will not receive them), but leave intact requests to other pages

1

There are 1 answers

0
srghma On BEST ANSWER

Thanks to Matthew, the answer on Linux is iptables -I OUTPUT -p tcp -m string --string "POST /addword?port=1001" --algo kmp -j DROP