betweenGo

Turning off JSP access

by on Aug.15, 2008, under HTTP Server

To turn off JSP access in your JBoss or other favorite application server add this to your web.xml.

<!-- Restrict direct access to jsps -->
<security-constraint>
  <web-resource-collection>
    <web-resource-name>you_cant_touch_this</web-resource-name>
    <url-pattern>*.jsp</url-pattern>
  </web-resource-collection>
  <auth-constraint/>
</security-constraint>

To prevent Apache from sending JSP requests to JBoss add the following to your configuration.

## DISALLOW FROM REACHING JBOSS (security-related filter):
!/*.jsp=name_of_your_app
!/*.xml=name_of_your_app


Share

Related posts:

  1. mod_rewrite to bypass security
  2. Recurring Illegal Access Errors in JBoss when running ATG
  3. Trim White Space from JSP
  4. Size of collection in a JSP/DSP page
  5. How to Log SQL on JBoss

:

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!