Difference between revisions of "Protected Files - WordPress"

From Help Wiki
m
m (updated "Subscribers" to "Students")
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
 
 +
<div class="container-fluid">
 +
<div class="row">
 +
<div class="col-md-8">
 
<div class="lead">
 
<div class="lead">
[[Image:Blue-l.png|left|75px]]  We have tailored WordPress at sites.evergreen.edu to allow you to protect certain files and posts/pages while keeping other areas of your site publicly available.  
+
WordPress at [http://sites.evergreen.edu sites.evergreen.edu] allows you to protect certain files and posts/pages while keeping other areas of your site publicly available.
 
</div>
 
</div>
<div class="gradientshadow"></div>
 
  
[[File:MediaVault.png | 200px | right]]
+
===About Adding Protected Files===
===Protected Files===
+
====Quick Tips:====
We're using the Media Vault plugin to add the ability to limit access to files uploaded to the Media Library. <br />
+
# '''You must upload the file to the Media Library first and set its protection'''
To add a protected file to your page or post:
+
# '''Next you can Add Media link to page'''
#Upload your file via the Dashboard to your Media LIbrary: '''Media > Add New'''
+
====Important to Know====
#Go to your post/page and click the “Add Media” button to insert the link into your post or page
+
*Even if your site is protected/set to require a login, the default file upload directory is not protected.  
#Click the Media Library tab (as opposed to Upload File) choose your file
+
*If a user has the direct URL to that file, a login is not required.
#Check the '''Protect Files''' checkbox
+
*If you need to fully protect uploaded files make sure to use the below procedures:
# Set the '''Files access permissions''' to '''Subscriber'''. This will limit access to enrolled students in your course.
+
#* Note: If you upload media via the “Add Media” button in your post/page you will need to go back to the Media Library and set the file protection to be viewable by Subscribers
+
  
===Private Posts/Pages===
+
===To add a protected file to your page or post:===
With the Subscribers Only plugin activated, subscribers to your site will have access to Private posts or pages. Consider setting a post or page to Private for any areas of the site where you would not want Google to index. For example, a page that lists links to copyrighted materials that would never be publicly available. <br />
+
[[File:Mediavault-protected.png|200px|right]]
To make a post/page private:
+
# Upload your file to your Media Library: '''Media > Add New'''  (check the '''Protect Media Uploads''' box)
# Edit the page/post you want to make private
+
# Go to your post/page where you want the link to appear and click the '''“Add Media”''' button to insert the link into your post or page
# In the “Publish” block click '''Edit''' next to Visibility
+
# Click the Media Library tab to choose your already uploaded file
# Set the visibility to “private”
+
# Make sure the '''Protect Files''' checkbox is checked
#Click '''OK''' and '''Update''' the post/page
+
# Set the '''Files access permissions''' to '''Students'''. This will limit access to enrolled students in your course.
 +
# Click the '''Insert into Page''' blue button to add a link to the protected file
  
  
 +
 +
===Common Issues===
 +
====My students get a 404 error when trying to access protected files====
 +
This is most likely because permissions were changed on the Media File '''after''' a link to the non-secure location was inserted into a post/page.
 +
: '''Fix:''' Remove the link in your post/page and Add Media again to insert the link to the protected file location. When unauthenticated students access protected files now, they will be prompted to login before gaining access to file.
 +
: '''Best Practice:''' Always set file protection first in the Media Library before inserting into a post/page.
 +
====Can I protect files uploaded via BBPress Forums?====
 +
No, at this time we do not have a way to fully protect files uploaded via Forum Attachments.
 +
 +
 +
See also: [[Protected Pages and Posts - WordPress]]
 +
 +
 +
<!-- end col-md-8 -->
 +
</div>
 +
<div class="col-md-1"></div>
 +
<div class="col-md-3 sidebar">
 +
{{WordPress Sidebar Header}}
 +
 +
{{WordPress Help Sidebar}}
 +
 +
<!-- end col-md-3-->
 +
</div>
 +
<!-- end row-->
 +
</div>
 +
<!-- end container-->
 +
</div>
 +
<!-- Generator=Template:TwoColumn -->
 +
__NOTOC__
 +
__NOEDITSECTION__
 
[[Category:Wordpress]]
 
[[Category:Wordpress]]

Latest revision as of 16:52, 28 June 2018

WordPress at sites.evergreen.edu allows you to protect certain files and posts/pages while keeping other areas of your site publicly available.

About Adding Protected Files

Quick Tips:

  1. You must upload the file to the Media Library first and set its protection
  2. Next you can Add Media link to page

Important to Know

  • Even if your site is protected/set to require a login, the default file upload directory is not protected.
  • If a user has the direct URL to that file, a login is not required.
  • If you need to fully protect uploaded files make sure to use the below procedures:

To add a protected file to your page or post:

Mediavault-protected.png
  1. Upload your file to your Media Library: Media > Add New (check the Protect Media Uploads box)
  2. Go to your post/page where you want the link to appear and click the “Add Media” button to insert the link into your post or page
  3. Click the Media Library tab to choose your already uploaded file
  4. Make sure the Protect Files checkbox is checked
  5. Set the Files access permissions to Students. This will limit access to enrolled students in your course.
  6. Click the Insert into Page blue button to add a link to the protected file


Common Issues

My students get a 404 error when trying to access protected files

This is most likely because permissions were changed on the Media File after a link to the non-secure location was inserted into a post/page.

Fix: Remove the link in your post/page and Add Media again to insert the link to the protected file location. When unauthenticated students access protected files now, they will be prompted to login before gaining access to file.
Best Practice: Always set file protection first in the Media Library before inserting into a post/page.

Can I protect files uploaded via BBPress Forums?

No, at this time we do not have a way to fully protect files uploaded via Forum Attachments.


See also: Protected Pages and Posts - WordPress