How are you all? I hope all of you are fine. Today I will discuss with which subject that is- how to Secure Upload Directory of WordPress with .htaccess File. Those who have missed my previous tunes for them I gave that tune’s link.
Secure Upload Directory of WordPress with .htaccess File
Security plays a great role for any website. Generally, WordPress is much secure. But you can improve WordPress security if you want. Through today’s tutorial, we will know that how to secure upload Directory through.Htaccess, make a file with a name of .htaccess in only some particular file extension and paste following codes. If the paste is completed then upload file wp-content/uploads directory.
This example is given only for Image File. You can give here any file like .pdf according to your need. Add your favourite format in five number line. WordPress with .htaccess File
<Files ~ ".*..*">
Deny from all
Allow from all