Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to return a 403 on a directory

Status
Not open for further replies.

thrybergh

MIS
Joined
Feb 10, 2003
Messages
52
Location
GB
Hello.

On my webapp I would like my custom 403 page to show when a user tries to view a subdirectory of my "preds" webapp, e.g. preds/images/

Currently it displays a list of all the files and I don't want this. I've made custom 404 and 500 pages and these are working fine.

I am not sure if it's a Tomcat issue or an Apache issue?

:-)
 
might just need a .htaccess file with 'IndexIgnore *' in the images directory to block file list access

Jeremy Nicholson, Director of a UK-based Java and Data Warehousing consultancy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top