Title: Files restriction
Last modified: October 25, 2021

---

# Files restriction

 *  Resolved [ac2017](https://wordpress.org/support/users/ac2017/)
 * (@ac2017)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/files-restriction/)
 * Hello. Is it possible to create a HTACCESS file so I can make a folder and its
   contents password protected using the Ultimate Member plugin?
 * I was using the code below but its not working anymore.
 * RewriteEngine On RewriteCond %{HTTP_REFERER} !^https://(www.)?cortecmci.com/
   
   RewriteCond %{REQUEST_URI} !hotlink.(doc|xls|xlsx|docx|mp4|mov|pdf) RewriteCond%{
   HTTP_COOKIE} !^.*wordpress_logged_in.*$ RewriteRule .*.(doc|xls|xlsx|docx|mp4
   |mov|pdf)$ [https://www.cortecmci.com/](https://www.cortecmci.com/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffiles-restriction%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/files-restriction/#post-15006338)
 * Hi [@ac2017](https://wordpress.org/support/users/ac2017/)
 * UM doesn’t create/generate code for the htaccess. This requires customization
   on your end. Have you tried adding the code in your htaccess file?
 * Regards,
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/files-restriction/#post-15024076)
 * Hi [@ac2017](https://wordpress.org/support/users/ac2017/)
 *  This thread has been inactive for a while so we’re going to go ahead and mark
   it Resolved.
 * Please feel free to re-open this thread by changing the Topic Status to ‘Not 
   Resolved’ if any other questions come up and we’d be happy to help. 🙂
 * Regards,

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

The topic ‘Files restriction’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/files-restriction/#post-15024076)
 * Status: resolved