Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Webfiltering for Smartphones

I've switched from transparent proxy over to standard proxy and have a wpad.dat that works great to force all desktop clients through the proxy and therefore get filtered (posted at the end of this message).  However, smartphones all seem to direct connect to the internet and bypass the proxy.

I did a search on this forum and it looks like it is possible to force smartphones through the proxy, but I didn't see the actual solution.

Can someone who does this give me and idea of what I need to do to force smartphones through the proxy.  

wdap.dat:

function FindProxyForURL(url, host)
{
url=url.toLowerCase();
host=host.toLowerCase();

//Don't proxy Windows Update
if ((host == "download.microsoft.com") ||
(host == "ntservicepack.microsoft.com") ||
(host == "cdm.microsoft.com") ||
(host == "wustat.windows.com") ||
(host == "windowsupdate.microsoft.com") ||
(dnsDomainIs(host, ".windowsupdate.microsoft.com")) ||
(host == "update.microsoft.com") ||
(dnsDomainIs(host, ".update.microsoft.com")) ||
(dnsDomainIs(host, ".windowsupdate.com")))
{
return 'DIRECT';
}

//The following URLs will not be proxied
if ( isPlainHostName(host)
|| dnsDomainIs(host, "companyintranet")
|| dnsDomainIs(host, ".company.local")
|| dnsDomainIs(host, "localhost")
|| isInNet(host, "192.168.0.0", "255.255.0.0")
|| isInNet(host, "127.0.0.0", "255.255.255.0")
)
return "DIRECT" ;
else
return "PROXY 192.168.0.254:8080"; }


This thread was automatically locked due to age.