Python Intercept Web Traffic from Browser

前端 未结 3 1306
生来不讨喜
生来不讨喜 2020-12-31 08:13

I\'m trying to create a simple web filtering app in python. The way I want to do this is to monitor traffic on ports tcp 80/443 (http) and if there is traffic, I want to che

3条回答
  •  春和景丽
    2020-12-31 08:36

    If it's a specific website, like google.com, you could always poision the hosts file. It would be a ugly but simple solution.

    If it's a go, it's located in :

    C:/windows/system32/drivers/hosts.txt
    

    It's also in etc on linux, not to sure were though...

提交回复
热议问题