Block by url and url keywords in squid

You can block access in squid by url and by keywords.

To block by url or domain name..

acl blocksites dstdomain .example.com .test.com http_access deny blocksites

To block access to websites by keyword :

acl blockwords url_regex -i keyword1 keyword2 http_access deny blockwords

Thanks