I was wondering if the following configuration would be safe:
Webpages accessible at locations /ManageXXXX.do
, /ManageYYYY.do
, ... should only be able to be accessed by admin
role, every other page is available to anyone.
I have configured the web.xml file as such:
<security-constraint>
<web-resource-collection>
<url-pattern>/Manage*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
Now I was wondering how reliable this was to people trying to get past the security. Is this guaranteed to block my Manage*
pages from unauthorized users? I'd just like to know how safe this kind of pattern matching is.