[Q.] For security and to save bandwidth I would like to configure Squid proxy server such way that I do not want my users to download all of the following files:
MP3How do I configure squid content filtering?
MPEG
MPG
AVG
AVI
EXE
[A.]You can use squid ACL (access control list) to block all these files easily. First open squid.conf file /etc/squid/squid.conf:
# vi /etc/squid/squid.conf
Now add following lines to your squid ACL section:
acl blockfiles urlpath_regex "/etc/squid/blocks.files.acl"
You want display custom error message when a file is blocked:
# Deny all blocked extension
deny_info ERR_BLOCKED_FILES blockfiles
http_access deny blockfiles
Save and close the file.
Create custom error message HTML file called ERR_BLOCKED_FILES in /etc/squid/error/ directory or /usr/share/squid/errors/English directory.
# vi ERR_BLOCKED_FILES
Append following content:
ERROR: Blocked file content
File is blocked due to new IT policy
Please contact helpdesk for more information:
Phone: 555-12435 (ext 44)
Email: helpdesk@yourcorp.com
Caution: Do not include HTML close tags as it will be closed by squid.
Now create /etc/squid/blocks.files.acl file:
# vi /etc/squid/blocks.files.acl
Append following text:
Save and close the file. Restart Squid:\.[Ee][Xx][Ee]$
\.[Aa][Vv][Ii]$
\.[Mm][Pp][Gg]$
\.[Mm][Pp][Ee][Gg]$
\.[Mm][Pp]3$
# /etc/init.d/squid restart
For those of you who are cheap true religion jeans not kdkjcxy0gkh familiar with the True Religion brand, established in 2002 True Religion has become well cheap true religion jeans for women known for their American made great fitting jeans. Key features to the jean include horseshoe-shaped patching on the back pockets, heavy contrast stitching, True Religion branded tabs, and zip fly. The jeans range in price from £150 - £320 cheap designer jeans so a sale is always good news.
ReplyDeleteTrue Religion jeans at sale discount true religion jeans price would make a great Christmas present for those who like to true religion brand jeans spend that little bit extra on a designer jean. The True Religion styles we are currently true religion brand jeans running sale prices on include the Nathan and Ricky.
True Religion is striking wholesale true religion jeans while the iron is hot as they plan to open 27 new stores in the US and one in Canada in fiscal 2010, which adds to the 28 stores they opened over the past year. These direct true religion wholesale to consumer stores are a key piece of True Religion's growth goals, as formerly they were sold mainly through the sales channels of high-end department stores and boutiques. At the end of last year, they had a total of just 70 stores, so there would seem to be plenty of room for growth, but a product like this does run the true religion jeans wholesale risk at a certain point of losing the "boutique appeal" and cache.