Redirect AMP Links to Actual Websites with Privoxy

Google introduced AMP in 2015 and it has been controversial1 to say the least.

If like me you don’t care much about this gimmick, you’d be delighted to know there is a way to transparently redirect every AMP link to their actual website using Privoxy.

In the Privoxy settings file (user.action is a good place to start), add:

{ +redirect{} }*

After restarting Privoxy, check with curl to see if the redirection is working all right:

$ ALL_PROXY= curl -LfI
HTTP/1.1 302 Local Redirect from Privoxy
Content-Length: 0
  1. My opinion is that the AMP initiative is fundamentally about control,