Viewing 2 replies - 1 through 2 (of 2 total)
  • File security outside of the realm of WP can be done at server level. Please review/consult.

    With .htaccess you can make sure that they are logged in. Something like this should work:

    RewriteCond %{HTTP_COOKIE} !wordpress_logged_in
    RewriteRule \.(pdf|solidworks)$ http://example.com/not-allowed/ [R=302,L]

    Where:

    \.(pdf|solidworks)$

    Are the file extensions you want to protect.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Password protect file downloads’ is closed to new replies.