Find the answer to your Linux question:
Results 1 to 6 of 6
Hello Guys, I am looking to block some of the websites i.e Https sites. Already done with blocking Http sites via squid. Searched for squid solution but ended with no ...
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    7

    squid + https block sites

    Hello Guys,

    I am looking to block some of the websites i.e Https sites. Already done with blocking Http sites via squid. Searched for squid solution but ended with no luck. . Is there a way to block Https sites via squid? If so what are the entries I have to make in squid configuration? Waiting for replies

    Thanks in advance

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    If you can do it by domain or subdomain (you don't give any examples), look at
    acl totalfail dstdomain .example.org
    substituting a domain you want to block for ".example.org".

  3. #3
    Just Joined! computer_freak_8's Avatar
    Join Date
    Sep 2008
    Location
    Des Moines, Iowa, USA
    Posts
    54
    Quote Originally Posted by minim View Post
    I am looking to block some of the websites i.e Https sites. Already done with blocking Http sites via squid. Searched for squid solution but ended with no luck. . Is there a way to block Https sites via squid? If so what are the entries I have to make in squid configuration?
    The part in bold has me just a bit confused... Do you want to block all HTTPS traffic, or just HTTPS traffic for specific domains? ...or block all to traffic to any domains that allow HTTPS? If you want to block all HTTPS traffic, you could probably just add "port 443" (or maybe "proto https") as a "dangerous" port; see here for more on that.

    If you just want to block HTTPS traffic for specific domains, then try using a domain block and an HTTPS block on the same line in the configuration file; look here for the "elements" used.

    If you wanted to block all traffic to any domain that allows HTTPS... I don't know; that sounds quite complicated.


    Although I am curious... why would you want to block HTTPS specifically?

  4. #4
    Just Joined!
    Join Date
    Apr 2010
    Posts
    7
    I have successfully allowed some ten Http sites and blocked remaining sites using squid configuration. I am looking for the solution in sqiud for Https sites also - Allow some ten Https sites and block the remaining Https sites. Waiting for one exact solution.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    1
    Try This and see if this works.

    acl special_url url_regex ^[your desired domains go here with the https prefix]
    http_access allow [your subnet]
    http_access deny any

    Note: each url will require a conplete line of the first command.

    Goodluck

  6. #6
    Just Joined!
    Join Date
    Apr 2010
    Posts
    7
    I have tried with the below squid configuration
    ----
    acl special_url url_regex ^[your desired domains go here with the https prefix]
    http_access allow [your subnet]
    http_access deny any
    ----
    But ended with no luck

    Is there any solution in squid configuration or is there any other solution to fill this solution?
    Waiting for one good solution.
    Thanks in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...