I was going to implement this to protect the uploads files: https://aamplugin.com/article/how-to-manage-access-to-the-wordpress-media-library
# BEGIN AAM Media Access Control
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$
RewriteRule . /index.php?aam-media=1 [L]
</IfModule>
# END AAM Media Access **Control`**
Has anyone done this in IIS to know what the working rewrite rules are for IIS to put in the web.config?
Thanks.