Close
Social profiles

You can easily Block Images using Squid Proxy Server with squid ACL (Access Control List). Locate your ACL section and add a configuration directive as follows.

Method 01:

acl BLKIMAGES urlpath_regex \.(jpg|png|jpeg|gif|bmp|ico)$ 
http_access deny BLKIMAGES

Method 02:

acl BLKIMAGES urlpath_regex "/etc/squid/BLKIMAGES.acl"
http_access deny BLKIMAGES

You have to create a file that has blocked file types using the following command:

vi /etc/squid/bad_files.acl

Then include the below content to it.

\.[Jj][Pp][Gg]$
\.[Bb][Mm][Pp]$
\.[Gg][Ii][Ff]$
\.[Pp][Nn][Gg]$
\.[Jj][Pp][Ee][Gg]$

Related Articles:

Leave a Reply

Your email address will not be published. Required fields are marked *

Close