deny access to jsp folders and files when entering the url manually in the address bar

Posted on 2004-11-09
Last Modified: 2010-04-11
hi all,
 is there a way to secure my folders and files in a jsp application?
how can i show a forbidden page error when the user enters in the address bar the ff:

what i'm trying to say is,they should not be able to view the file or the contents of the folder when they enter it manually in the address bar.

i'm using apache tomcat 4.0 and jdk1.3.1 and ms sql as the database.

thanks in advance!
Question by:etucyazit
    1 Comment
    LVL 51

    Accepted Solution

    in httpd.conf set following for / directory directive
      Options -Indexes

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
    Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now