<configuration>
<system.webServer>
<handlers>
<clear />
<add
name="StaticFile"
path="*" verb="*"
modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"
resourceType="Either"
requireAccess="Read" />
</handlers>
<staticContent>
<mimeMap fileExtension=".*" mimeType="application/octet-stream" />
</staticContent>
</system.webServer>
</configuration>
You should protect your Wordpress uploads folders by preventing script execution from that folder/subfolders. This is one of the most common ways that a If you are hosting Wordpress on IIS then you should add a web.config file to the /wp-content/uploads folder with the following content:
- 2 Users Found This Useful