Secure Upload Directory of WordPress with .htaccess File

1415

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

Secure Upload Directory of WordPress with
Secure Upload Directory of WordPress with

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.

How To Secure Upload .htaccess file in wordpress

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 ~ ".*..*">
Order Allow,Deny
Deny from all
</Files>
<FilesMatch ".(jpg|jpeg|jpe|gif|png|tif|tiff)$">
Order Deny,Allow
Allow from all
</FilesMatch>

I hope you will like it. You can visit my site.