For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Sunday, March 10, 2024

Enable or Disable files folder structure in website domain

 Enable or Disable files folder structure in website domain

Sometime when you type the url or website domain then files and folder structure show. This is normally for the test servers with no security.
Sometime it is useful for testing of different pages and folder etc, because all files and folder show and user can test any files etc. But if you want to apply the security that no any files and folders show then use below code in .htaccess file. if you have no .htaccess files create it. Code is for show files and directory is :
Options +Indexes
This is for show files and folders.
For do not show files and folders use below code:
Options -Indexes




Share:

0 comments:

Post a Comment

Add Dependent Scripts

   here is the code that allow to add dependent script :         <script>         const addDependentScripts = async function( scriptsT...

Ads Inside Post

Powered by Blogger.

Arsip