For this you need to do the following changes
No win the configuration file
acl blockpages url_regex "/etc/squid/badpage.acl"
http_access deny blockpages
And if you find this working mark the thread as SOLVED