Viewing 1 replies (of 1 total)
  • Thread Starter erwinodendaal

    (@erwinodendaal)

    I’ve blocked not logged in users from downloading pdf’s by adding these lines of code to the .htaccess file:

    RewriteCond %{REQUEST_FILENAME} ^.*(pdf)$
    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
    RewriteRule . - [R=403,L]

    No need anymore for the plugin to prevent the downloading.

Viewing 1 replies (of 1 total)
  • The topic ‘"Lock files" doesn't lock files and hides images’ is closed to new replies.