abhinavsingh / proxy.py

💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • 😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • 👮🏿 "Proxy Server" framework • 🌐 "Web Server" framework • ➵ ➶ ➷ ➠ "PubSub" framework • 👷 "Work" acceptor & executor framework
https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/
BSD 3-Clause "New" or "Revised" License
2.91k stars 568 forks source link

How to use it to intercept and manipulate requests??` #1349

Open nandish486 opened 9 months ago

nandish486 commented 9 months ago

image

i want to get urls accessed, and want to check if the filter is in adblock rule, if yes, then that url must be blocked by sending 404 response.

please help me i am new to this pakage.

abhinavsingh commented 8 months ago

@nandish486 There is already some filtering/blocking plugins in the examples directory that you can use as a skeleton for your application.

nandish486 commented 8 months ago

@nandish486 There is already some filtering/blocking plugins in the examples directory that you can use as a skeleton for your application.

Sir can you show me file? Actually I wanna block keywords and many things in my whole network. Just like https filtering at high speeds. Actually I am over it because of speed only cause mitm proxy is too slow even on local host.