Posts marked with "Directory" in tags

Prevent Directory Listing using HTACCESS

If you don’t want your site users to see your directory listing, you can do a simple trick in .htaccess file.
Here is a screenshot of a directory listing on Apache Server :

Now, to disable directory listing of all types of files, type in the following code in .htaccess :

IndexIgnore *

This will change the directory listing to this :

The empty directory listing looks ugly. To make it beautiful, you can add an index page for all directory listings without adding each index files on each directory. Use the following code on .htaccess for that.

... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab