Send all clients to mobile sites
-
Is there a way or a trick to send all internet users under pfsense to mobile sites?
-
This sounds like something that should be possible using squid. A quick google turned up that you can replace headers including the browser type. I would assume setting this to a mobile browser might trick sites into sending their mobile versions.
http://www.squid-cache.org/Doc/config/header_replace/
-
I am putting this in the Custom Options section on the proxy.
header_access User-Agent deny all;header_replace User-Agent Mozilla/5.0 (Linux; <android version="">; <build tag="" etc.="">);
But its not working. Any ideas?</build></android>
-
Ah it says squid must be built with
–enable-http-violation
but i see its not in pfsense.
Is there a way to rebuild it on pfsense?