Url regex squid proxy4/4/2023 Save the configuration file after entering the rule and reload the squid service user1]# service squid reload Ĥth line - Enter “ allow test “ so that all other domains except the keywords in the file can be accessed. Ģnd line - Enter the acl name as “ keyword_block” and the path of the keyword list file.ģrd line - Enter the “ deny” option along with acl name test and keyword_block, so that any link which carries the keywords mentioned in the file will be denied for the IP’ s which comes under the acl name “ test”. user1]# vim /etc/squid/nfĮnter the acl rule to block by keywords as shown below, acl test src 192.168.5.219 192.168.5.63Īcl keyword_block url_regex " /etc/squid/keyword_block.txt"ġst line - Enter the source acl name as “ test” and entered the IP addresses/network address. Create a keyword_block.txt file with a list of keywords to block (or) allow in /etc/squid/ user1]# vim /etc/squid/keyword_block.txt
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |