Maybe it looks for the HTTP header "Via" which many proxies add.

My ISP has a transparent proxy, but I believe it adds "Via" headers.