Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anybody know how to block HTTPS base sites. (ex. gamil.com) without blocking only 443 port. because It block all the https base site. I want to block only mail sites.
Anybody know how to block HTTPS base sites. (ex. gamil.com) without blocking only 443 port. because It block all the https base site. I want to block only mail sites.
Thanks in Advance
Avin.....
HTTPS has nothing to do with 'mail sites'. If you block https, that's 443 by default.
There is a blacklist you can put in place in Squid, to block the sites listed in it, but there's no hard-and-fast rule to block mail sites. A 'mail site' can be called anything, and run on any port....
Best thing you can do in your situation, is to look at the access logs, and pull out a list of sites you want to block, and build your blacklist accordingly.
HTTPS has nothing to do with 'mail sites'. If you block https, that's 443 by default.
There is a blacklist you can put in place in Squid, to block the sites listed in it, but there's no hard-and-fast rule to block mail sites. A 'mail site' can be called anything, and run on any port....
Best thing you can do in your situation, is to look at the access logs, and pull out a list of sites you want to block, and build your blacklist accordingly.
Hi,
Thanks for reply.....
I have already created my black list. Problem is that Squid only filter http base site and it is not filter https base site. I want to block some https base site like gmail, hotmail and chatting tools(gtalk, skype)
I know very well how to filter http base site but I am not able to apply my rules on https base site. I had tried to block 443 port which https use for connection but It was block all the https site. and some office application. So Can you tell me How can I block 443 port on particular domain. I am using Transparent Proxy.
Create a block list that's regex based, that'll block anything including HTTPS:
Code:
Acl Type: dstdom_regex
Description: This is also an effective method as dstdomain
Usage: acl aclname dstdom_regex pattern
Example: acl aclname dstdom_regex kovai
Hence this looks for the word kovai from the client domain name
I have the same problem. Did you already found out how?
First, don't reopen old threads...this is TWO YEARS OLD. Open your own thread for your own question. And did you not read the above thread?? You can create an ACL to block sites, or use the regex based ACL that's documented in Squid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.