How to make a folder not view able to to public

Posted on 2012-04-02
Medium Priority
Last Modified: 2012-04-02
When someone goes to a folder on my website, how can I make them get a forbidden error? Or do you have any better ideas?

I don't want certain stuff to be viewable.

I am using cPanel
Question by:Computer Guy
  • 3
LVL 17

Expert Comment

ID: 37795294

Author Comment

by:Computer Guy
ID: 37795301
Where do I get to this?
LVL 17

Accepted Solution

Anuroopsundd earned 2000 total points
ID: 37795318
under advanced section

Expert Comment

ID: 37795325
Perhaps you could give some more information about the OS and the webserver you are using. If it is Apache on Linux, try this:

1. Edit the default config in /etc/apache2/sites-available
2. Look for the following "Options Indexes FollowSymLinks"
3. Replace "Indexes" with "-Indexes"
4. Restart apache
LVL 17

Expert Comment

ID: 37795330

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

839 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