START HERE

WordPress: restrict access to /uploads/ folder to logged in user.

Avatar for Giovanni De Carlo Giovanni De Carlo 0 comment

Create an .htaccess file in your /uploads/ folder and paste this code. Work only on Apache.

RewriteEngine On
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
RewriteRule ^(.*)$ - [R=403,L]
Avatar for Giovanni De Carlo

Giovanni De Carlo

See all posts »
Comments

Leave a Reply

Your email address will not be published. Required fields are marked *