File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Blocking access to a file extension
Joined: Oct 06, 2003
Nov 08, 2004 07:19:00
Hi, is there anyway to block the access to a file that has a specific extension in the
configuration? for instance: I wanna block files with extensions EXE to be accessed.
Author and ninkuma
Joined: Jan 10, 2002
Nov 08, 2004 08:21:00
Then why have them under your web app root in the first place?
You might get better responses if you informed us what the exe files are used for.
Asking smart questions
Books by Bear
Author and all-around good cowpoke
Joined: Mar 22, 2000
Nov 08, 2004 14:55:00
I suppose you could map the extension to a
that said "not allowed"
Look at the way *.jsp is mapped to the JspServlet in the default web.xml for an example.
I agree. Here's the link:
subject: Blocking access to a file extension
Accessing TXT file on the server
Opinions/Questions About SCJA
not give access to a file extension
File type mdbfdt- read
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013