GreatWP.blogspot.com

Learn how to Disable Listing Shopping in WordPress

Learn how to Disable Listing Shopping in WordPress

By default when your net server doesn't discover an index file (i.e. a file like index.php or index.html), it robotically shows an index web page exhibiting the contents of the listing. This might make your website susceptible to hack assaults by revealing necessary info wanted to take advantage of a vulnerability in a WordPress plugin, theme, or your server typically. On this article, we'll present you how you can disable listing looking in WordPress.

An example of directory index browsing in WordPress

Why You Must Disable Listing Shopping in WordPress

Listing looking can be utilized by hackers to search out out when you have any recordsdata with identified vulnerabilities, to allow them to benefit from these recordsdata to achieve entry. For the great safety of our websites, we use Sucuri for WordPress security. They've a easy dashboard which permits us to do that and carry out many different WordPress safety strengthening steps with in few clicks.

Listing looking can be utilized by different individuals to look into your recordsdata, copy photographs, discover out your listing construction, and different info. This is the reason it's extremely advisable that you simply flip off listing indexing and looking.

Video Tutorial

Subscribe to Greatwp

In the event you don’t just like the video or want extra directions, then proceed studying.

To disable listing looking in WordPress all you must do is add a single line of code in your WordPress website’s .htaccess file positioned within the root listing of your web site. To edit the .htaccess file you must hook up with your web site utilizing an FTP consumer.

As soon as related to your web site, you will see that a .htaccess file in your website’s root listing. .htaccess is a hidden file, and if you can't discover it in your server, you must just be sure you have enabled your FTP consumer to indicate hidden recordsdata.

You possibly can edit your .htaccess file by downloading it to your desktop and opening it in a textual content editor like Notepad. Now on the finish of your WordPress generated code within the .htaccess file merely add this line on the backside:

Choices -Indexes

Now save your .htaccess file and add it again to your server utilizing your FTP consumer. That’s all you must do. Listing looking is now disabled in your WordPress website and other people attempting to find a listing index in your web site shall be redirected to WordPress 404 web page.

We hope this text helped you learn to disable listing looking in WordPress to make your web site safer. For questions and suggestions you'll be able to depart a remark beneath or be a part of us on Twitter.

Tutorials