Prevent Directory Browsing

Please visit our channel & subscribe: https://youtube.com/dhakawebhost
 
 
It’s possible for visitors to see a list of your site’s directories in the front-end if they enter in your domain and then a directory into their browser’s address bar. Since WordPress has a set file structure, nothing’s currently stopping someone from visiting your-site.com/wp-content-uploads/ and seeing a list of your folder and files.

This is definitely not what you want because it’s that much easier for a hacker to hack into an important file in your site if they can literally see the target file in plain sight and don’t have to guess where the file is located.

Adding this line to your .htaccess file prevents directory browsing so hackers have a more difficult time figuring you out.

            Options All -Indexes
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

.htaccess in WordPress

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The .htaccess file...

Where the .htaccess file located and what's .htaccess got to do with It?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The...

How to download .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   You can download a...

How to create a .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   Depending on your...

Where to Add Your Changes?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   When you’re...