title: Python Intercept Web Traffic from Browser
body: <p>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 check something before I let it go through. If it fails the check, I would like for the user to be redirected to a page of my choosing.</p>
  
  <p>So my question is, when the user visits <a href="http://www.google.com" rel="noreferrer">http://www.google.com</a> in the browser, is there a way that I can intercept that request, and is there a way I can redirect them to another page by my choosing?</p>