Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
squid site restrictions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
files
n00b
n00b


Joined: 21 Nov 2006
Posts: 20

PostPosted: Fri Sep 12, 2008 7:11 am    Post subject: squid site restrictions Reply with quote

hi, am using squid to filter web sites. squid acl rules below

Code:

acl kestas src 192.168.1.153
acl bannedsites url_regex -i "/etc/squid/banned.txt"
acl lunch time MTWHF 12:00-13:00
acl night time MTWHF 17:00-23:00
acl morning time MTWHF 00:00-08:30

http_access deny bannedsites !lunch !night !morning
http_access allow !kestas


banned.txt

Code:

.one.lt
.pazintys.lt
.klase.lt
.draugas.lt
.juokelis.lt
.panele.lt
.klubas.lt
.cha.lt
.supermama.lt
.www.invest-game.com
.gladiatus.lt
.travian.lt
.travian.com
.bridgeclub.lt
.ieskok.lt


the problem is squid blocks too much, for example it blocks manoimone.lt, it does that because one.lt is in blocked site list, how to fix this issue?
i have tryed .*[^.]one.lt, \.one.lt ather combination, nothing helps.
Back to top
View user's profile Send private message
rad7
n00b
n00b


Joined: 01 Jul 2006
Posts: 8

PostPosted: Fri Sep 12, 2008 8:54 am    Post subject: Reply with quote

maybe you should try:
Code:
acl bannedsites dstdom_regex -i "/etc/squid/banned.txt"


url_regex is for URLs
but dstdom_regex is for domains
_________________
www.radekphotography.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum