Ready to get started?Download WordPress


Role Scoper
restrict file viewing not working (3 posts)

  1. KidBrax
    Posted 1 year ago #

    I can not get Role Scoper to restrict file downloads. I have enabled 'Filter Uploaded File Attachments' and run the Attachments Utility. I attached and inserted a file into a post. I then restricted the post to a certain group. My test user can not view the post, which is correct. However, if that user enters the direct path to the file, they can view the file.

    • Shouldn't Role Scoper prevent that?
    • Did I miss a setting?
    • Is my htaccess file supposed to have been altered (it hasn't been)


  2. kevinB
    Plugin Author

    Posted 1 year ago #

    Each protected file gets an entry in wp-content/uploads/.htaccess. For multisite, there is a per-file entry in blogs.dir/N/files and a per-site entry in the main .htaccess

    Is your file in one of those folders?

    I revisited file filtering and found it to be working without any changes made for the new version 1.3.56. But it does eliminate some PHP warnings which could possibly have broken your file filtering.

    If it's still not working for you, check the PHP error log for clues.

  3. ffwebdesigner
    Posted 1 year ago #

    same with me. custom upload folder, but neither root .htaccess nor /uploads .htaccess nor /customfolder/.htaccess generated. file generally visible.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic