Post Reply 
question about "ALLOW" and regex
Oct. 04, 2008, 02:37 AM
Post: #1
question about "ALLOW" and regex
Hello I am a Chinese and I have tried BFilter for a couple of days. it works great, though the filtering rules appears to be a little bit too harsh.
(actually sometimes not quite efficient, due to language barrier:
some of the sites use "guang gao" instead of ads : /ggao/ -> /gg/ -> /ggjs/ -> /gg_img/ ... )

I wonder if BFilter support regular express within ALLOW command.
I want to white-list the following links
http://i0.sinaimg.cn/home/58/2008/0325/U...091154.jpg
http://i2.sinaimg.cn/enet/......jpg
http://i3.sinaimg.cn/life/......jpg

and I inserted this command into urls.local (actually i make it out of your "AD" commands =) ):
ALLOW /http://i\d\.sinaimg\.cn/.*/

well , I think this looks fine ,but it doesnt work for the site [ http://www.sina.com.cn ]
any idea if there is a way to get it work? or any other trick to let the links above white-listed? thanx in advance

Regards
soar
Add Thank You Quote this message in a reply
Oct. 04, 2008, 09:05 AM
Post: #2
RE: question about "ALLOW" and regex
As far as I remember, ALLOW only lifts hard blocks, but not heuristic ones.
What you need is a negative hint:
Code:
-10 /http://i\d\.sinaimg\.cn/.*/
This should work I think.
Add Thank You Quote this message in a reply
Oct. 05, 2008, 10:13 AM
Post: #3
RE: question about "ALLOW" and regex
thanks jart I tried it out and it works like a charm now.
I am wondering what is the exact range of the heuristic parameter. -10 ~ +10 ?
BTW: I wonder if there is anything I can do for this pretty gear.
do we need a Chinese version? if so what can i do to help?
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: