The website that I have is Wordpress based and its hosted on a Litespeed/apache server.
I am looking to block the WP media library folder so that any user that is not logged in cannot access any file or share that file outside of Wordpress, the website is also using Cloudfare and cache is switched off.
For the htaccess file i have the following code added but so far zero luck.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$
RewriteCond %{REQUEST_URI} !\.(css|js|php)$
RewriteRule . /index.php?aam-media=1 [L]
</IfModule>
Any idea of how to get this to work?
I am looking to block the WP media library folder so that any user that is not logged in cannot access any file or share that file outside of Wordpress, the website is also using Cloudfare and cache is switched off.
For the htaccess file i have the following code added but so far zero luck.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$
RewriteCond %{REQUEST_URI} !\.(css|js|php)$
RewriteRule . /index.php?aam-media=1 [L]
</IfModule>
Any idea of how to get this to work?