Support » Plugin: Prevent files / folders access » Great Plugin – Lots of Options For Control

  • I would recommend this plugin if you are seeking to protect files (by extension) from visitors.

    I have a very complicated theme, with over 60 plugins and this one delivers – it’s light and doesn’t bog down your load times (able to get load time under 900ms without using gzip, page caching, etc. as I’m still building website – but expect that 900ms to drop to 750ms or less in the future with the right tweaking).

    I did have issues with it breaking the website, originally, but support was there and I was willing to be patient and try different options the plugin offered.

    For me, protecting all current and future PDF’s (that members will upload) needed to be protected from viewing, unless they are logged in, and this where the plugin came in.

    My finally htaccess code that the plugin injected (through plugin options) was this:

    
    # BEGIN MINIORANGE MEDIA RESTRICTION
    RewriteCond %{REQUEST_FILENAME} ^.*(pdf)$ [OR]
    RewriteCond %{REQUEST_URI} protectedfiles 
    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
    RewriteRule ^(.*)$ ./wp-login.php?redirect_to=$1 [R=302,NC]
    # END MINIORANGE MEDIA RESTRICTION
    

    Basically, protect all PDF’s from visitors, but opens up for logged in members.

    Thanks for the great plugin and support.

    JJ

  • You must be logged in to reply to this review.