Alben, Pare try this:
1. Create a file containing the url that you want to block. E.g: /etc/squid/block.url 2. Edit /etc/squid/squid.conf and add this before your http_access deny all line: acl URLDeny url_regex -i "/etc/squid/block.url" http_access deny URLDeny 3. restart squid this acl will block every url containing the strings that you will specify on your /etc/squid/block.url file. The file should contain all of the url patterns that you would want to block. The entries should appear per line. --- Jon C. Viardo Systems Administrator Poveda Learning Centre Quezon City, Philippines Message: 2 Date: Fri, 28 May 2004 11:23:34 +0800 From: alben benavente alteza <[EMAIL PROTECTED]> Subject: [plug] Squid question To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" I need to block certain URL containing the word sex xxx etc. What derivative or command or acl in squid to do this. thanks in advance -- Alben Benavente Alteza Information Systems Security Administration Information Systems Dept./ Philippine Airlines --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004 --- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Poveda Learning Centre http://www.plc.edu.ph -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
