Protect access to PDF files on website

HI there,

We run training courses and we like to make PDF copies of the PowerPoint slides available to delegates on our website.

Presently I use Wordpress for the site and make use of WooCommerce Memberships to control page access via delegates website accounts to see protected non public pages (these pages have direct links to the PDFs in them).

The problem that we have encountered is that Google can index the folder [apps/wordpress/htdocs/wp-content/course_content/course_X] and give anyone who searches with the right terms access to the PDF in the folder.

Is there a way I can restrict this folder so that only those clicking on the links in the protected webpage can be used to find the PDFs?

Many thanks,
JackIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented: is one simple plugin to restrict access to a directory or files.

You can restrict based on just being logged in or assigning membership levels.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Note: This is just one of... probably many 1000s of plugins like this, which are related to managing membership levels, or roles, or content restriction.

Best to search through the WordPress repository + find one which fits you're requirements.
JackIT ManagerAuthor Commented:
Thanks David. I will search further. Restricting access to files and stopping Google for indexing a folder of files is my priority.

One solution for this is to save files in DB using BLOB
When doing this the file won't be save in directory
JackIT ManagerAuthor Commented:
I think I have found my solution in:
Many thanks,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.