| Tag Name | deny_info |
| Usage | deny_info err_page_name acl |
Description
This can be used to return an ERR_ page for requests, which do not pass the ‘http_access’ rules. A single ACL will cause the http_access check to fail. If a ‘deny_info’ line exists for that ACL then Squid returns a corresponding error page.
You may use ERR_ pages that come with Squid or create your own pages and put them into the configured errors/ directory
| Default | none |
Example
If you want to deny domain ‘deny.com’ and want to display access denied message specifically, add these lines in conf. And add the file called ERR_CUSTOM_ACCESS_DENIED in $prefix/etc/errors/ directory with your own format.
acl DSTDOMAIN dstdomain .deny.com
http_access deny DSTDOMAIN
http_access allow all
deny_info ERR_CUSTOM_ACCESS_DENIED DSTDOMAIN
So now if users try to browse ‘deny.com’ they will get your defined error message