How to keep wp-content directory of WordPress site safe

Everyone says my site is safe, I also say it is safe. However, there are some issues related to the security of your site that are important for all site admins to know.

For example, if everyone can access the wp-content directory of your WordPress site, it is harmful for you. Because if there is a bug in any of the plugins you use at one time, your entire directory can be easily accessed.

So you need to keep the wp-content directory secure.

How to understand that your wp-content directory is open

Type in browser http://sitename.com/wp-content/uploads/2011/12/

If you can see folders and files, then everyone can access your wp-content directory.

Now how to close it

  • First login to your server / C panel, then you need to enter the index manager.
  • Now you select WebRoot (public_html / www) and click on the Go button to enter.
  • Now you click on wp-content
  • Now click on No Indexing.
  • Http://sitename.com/wp-content/uploads/2011/12/

Check again, now you won’t see like before.