URL Filters

Author Message
Rob H 08/09/2006 05:24 pm
I have a project where I'm restricting directories using both included and excluded directories and it seems to work fine. However, now I find that I need to include some url's that do not have a directory (just a server and a command like ?action=profile). However, I don't know how to specify that url's without any directory should be included. Can somebody help me out?

Then I have a second question. When I have 'included' servers and 'included' directories, does the system require that a url matches both an included server AND an included directory - or does it just have to match one of them - ie an OR.

Thanks - it's a wonderful product
Oleg Chernavin 08/11/2006 05:45 am
1. You will have to use Filename filters for that.
2. No, a URL should match all of them, or it will be not allowed for the download.

You can also use keywords in the Directory section that have server name specified:
http://www.server.*/path*/

Best regards,
Oleg Chernavin
MP Staff
Rob H 08/13/2006 10:15 pm
Oleg,

I have tried using the filename filters and they solve my problem. Thanks.

However the way I have implemented them seems a little clumsy. For instance I end up with a series of filename filters like this because my experiments suggest that an asterisk does not cover slashes or nulls:

http://*serverx.com/group/*/photos/*
http://*serverx.com/group/*/photos/*/
http://*serverx.com/group/*/photos/*/*
http://*serverx.com/group/*/photos/*/*/
http://*serverx.com/group/*/photos/*/*/*
http://*serverx.com/group/*/files/*
http://*serverx.com/group/*/files/*/
http://*serverx.com/group/*/files/*/*
http://*serverx.com/group/*/files/*/*/
http://*serverx.com/group/*/files/*/*/*
http://*serverx.com/group/*/messages/*
http://*serverx.com/group/*/messages/*/
http://*serverx.com/group/*/messages/*/*
http://*serverx.com/group/*/messages/*/*/
http://*serverx.com/group/*/messages/*/*/*
http://*serverx.com/group/*/members/*
http://*serverx.com/group/*/members/*/
http://*serverx.com/group/*/members/*/*
http://*serverx.com/group/*/members/*/*/
http://*serverx.com/group/*/members/*/*/*

Can you see a better way to do this?

My only other thought is that it might be useful to have another kind of filter that just applies keywords to the URL as one string. I have used a product like that with some success (but it is crappy in other respects) where a filter might be:

(*/photos/* or */files/* or */messages/* or */members/*) and not (*/messages/post/* or *login* or (*photos* and */store2/*) or *&set=5*) etc.

However I realize that yet another method might be too confusing and the bottom line is that I CAN get it working using filename filters.

Thanks again for a great product,
Rob
Rob H 08/14/2006 01:21 am
PS - I realize now that it looks like I could have used directory filters - but I can't because of the links that have no directories. I omitted the file filters relating to such situations from my list (above) because they were not repetitive.
Oleg Chernavin 08/14/2006 05:55 am
What about using Filename filters and place the following:

Include:

/*/photos/*
/*/files/*
/*/messages/*
/*/members/*

Exclude:

/*/messages/post/*
login
photos
/*/store2/*
&set=5

Oleg.