URL.txt question

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
RobMain
Observer
Observer
Posts: 5
Joined: Mon Nov 17, 2003 9:42 am

URL.txt question

Post by RobMain »

We're using PWB 2.05 on Win2000 clients. I was wondering if anyone knew how to restrict access to specific directories on a host. For instance, here's what I would imagine the URL.txt file would look like if this were possible:

-all
-http://www.server.com/dirA/
+http://www.server.com/dirB/

In this example, dirA would not be accessible and dirB would. Is this something that regular expressions would take care of or is this not yet a possibility?

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

This should actually work, although I would include the "+" before the "-". Because the "-all" excludes everything, PWB will search through the URL file until is find a match wether to deny or allow, so having your allows above your denies allows PWB to parse it faster. Also with the "-all" the "-http://www.server.com/dirA/" is redundant, since it was already disallowed with the "-all".

-all
+http://www.server.com/dirB/
-http://www.server.com/dirA/

Starting with PWB v2.04 revision 4 regualr expressions are supported.

--Scott

Post Reply