How to wordpress secure file upload using apache rules
WordPress tutorial, How to wordpress secure file upload using apache rules, Here we given apache rule for secure your wordpress file upload functionality.
How to wordpress secure file upload using apache rules
Website security is most important point of any website. In wordpress we need to give 777 permission to wp-content/uploads folder. Some time we don’t want to give the 777 (read, write and execute) permission to folder due to security reason but wordpress do not allow you to upload images or media files to uploads folder.
Tip: Do not give 777 permission to wp-content/uploads folder. In stead change user ownership to apache folder.
Security
What you can do is. You can restrict other file types to upload in uploads folder using simple apache rule. following code you can use in .htaccess file.
Order Allow,Deny Deny from all <FilesMatch ".(jpg|jpeg|jpe|gif|png|tif|tiff)$"> Order Deny,Allow Allow from all
Using above code you can secure your uploads folder and only selected files can be pushed into uploads folder.
Related
Related Posts
-
How can user delete their own account from WordPress site
No Comments | Aug 5, 2010 -
Change a Admin Color Scheme for All Users in WordPress
No Comments | Oct 8, 2015 -
change author url without wordpress plugin
1 Comment | Sep 30, 2013 -
Fetch the wordpress post paragraph number wise
No Comments | Nov 26, 2009
About The Author
PurabTech
My name is Purab, I contributor of many Open Source Platforms.Youtube Chanel PurabTechConnect to on LinkedIn or Follow @purab on Twitter or Follow me on Google+ or Write Mail to purabdk@gmail.com or Chat with me on Skype : purabdk