Search squid archive

RE: acl from file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I have a huge txt file with domains that I want to ban, like this:
>
> .dom.com
> .dom2.net
> .....etc
>
> I not sure I i can do this at my acl configuration
>
> acl banneddommains  dstdomain /path/file.txt

RTFM :-)

>From squid.conf;
#  TAG: acl
#       Defining an Access List
#
#       acl aclname acltype string1 ...
#       acl aclname acltype "file" ...
#
#       when using "file", the file should contain one item per line

So you just need to put quotes ie.
acl banneddommains  dstdomain "/path/file.txt"


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux