http://www.trafficisgold.com Protecting your Wordpress site from a malicious attack by using an .htaccess file in your upload folder.
When uploading pictures to your Wordpress site, your host may require you to set the permissions of the upload folder to 775 or even 777.
A permission of 777 gives everyone read, write and execute privileges on that folder. This is very dangerous and can give hackers the ability to access your site and server via this wide open folder.
One way to minimize your exposure is to add an .htaccess file to the folder with the following code.