In this post i am going to block keyword for accessing website.
#create acl
acl porn_sites url_regex “/etc/squid/porn_sites”
#apply rule
http_access deny porn_sites
Create file and mentioned keyword which you want to block
# vi /etc/squid/porn-content
porn
sex
#service squid reload