Im using that rule
^(?!webmaster)[\w\/\d\_\-\:\;\?\=\.]+$
to match all request which are different of webmaster.
How to match request which are different of webmaster OR some_other_dir ?
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
The
(?:webmaster|SomeOtherDir)is a non capturing group and the|is a “OR”You can also simplify your character group, within a character group most characters don’t need to be escaped, the
-has to be at the beginning or the end (or needs escaping) otherwise it defines a character range, so I moved it to the end. The_is included in\wso does not need to be listed. (I am not sure about the/, so I leave it as it is)