The solution outlined below is believed to be obsolete & ineffective, but retained for historical interest. Phorm have changed their method of operation to hi-jack image requests. You should encrypt your web communications using SSL.

Phorm Speed Trap

 

The Dephormation Speed Trap test uses a slow web page to test the speed of response from the server using AJAX (Javascript).

If the server responds too quickly with a redirect, you know Phorm have intercepted your page.

Pros; likely to reliably detect any redirect

Cons; requires complex client side script

Try the code without redirects, and with redirects.