Yes. You'll just need to configure the blocked url's. There's also the squidGard add-on which seems to be more efficient, but I had good luck with Squid's native text files and regex's.
In order for squid to block the site, all web traffic must be funnelled through squid and blocked otherwise. If not, you can just list hotmail in the list of servers not to use a proxy for.
A port filter to the offending machine on your router would probably be more effective if you're not already using squid.
I need to block all the webmail access not the IMAP. So I can't just use iptables to complete my task since I can't get the all the webmail ip from the internet.
I need to block webmail not IMAP. Although most of the webmail use IMAP to connect to their server, they use IMAP locally and just dump the result page to us.
Ok sorry I was thinking inside-out there, so your clients (inside your) office Intranet are accessing port 80 to an external webmail service? so "same tact different port" .....
If your gateway server is a Linux server then a simple iptables firewall will be a solution, blocking port 80 & 443 (maybe) "to the domain" somewhere.com from inside IP's, otherwise take a look at something like
I know that I can block the address of an webmail by using iptables if I know the webmail address. However my main problem is that there are lots of webmail in the internet. It is impossible to get all of the ip addresses and block them by iptables. Also, if the webmail ip address is the same as its main web ipaddress, blocking the webmail ip will also block the user to access the web on that site.
Using the iptables, that means if an new webmail website is up, I must know it's ip so that I can add a rule. However how can I know the webmail web is up. It is impossible to monitor the internet. Right?
I would like to know that how the internet firewall do that automatically.
Let me understand, you want to block access to EXTERNAL webmail hosts? Those are on HTTP/TCP port 80. So are Yahoo.com, Amazon.com, CNN.com,etc.
To my knowledge, without specifying site names or IP addresses you cannot magically block traffic to "webmail" sites. After all, they're just websites.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.