Wordpress password protected uploads folder - wordpress

I needs to disable direct access of my uploaded PDF files
I used Password Protected Plugin for website , But unable to protect my pdf files
I also tried with nginx

Plugin sometimes not works well with the documents.
So, If you want the password-protected PDF then make the PDF security with a password and after upload it in the upload folder. So it will be not accessed without the password of PDF.

Related

prevent website files from being downloaded from direct URL

I have a site in Wordpress that has a PDF link for download that is currently on a password protected page. I am wondering how I can prevent that PDF from being downloaded if someone happens to get the direct file path url for that PDF. Is there maybe a plugin that would help? The site is on AWS so I can't change the .htaccess file as I've seen most people suggest.
The standard approach with AWS is to host your files on S3 and use S3 PreSigned URLs with an expiration.
From your protected by password pages, generated presigned urls in place of the regular download link. Then protect your S3 bucket by making it NOT public. The presigned url will be required to download the file.
A Google search will turn up lots of examples with source code on how to do this. Very easy to do.
Creating a presigned request

How to upload files to folder using WordPress without using FTP or cPanel?

I have access to WordPress, but I lost my cPanel and FTP login. I quickly want to move a file to a directory inside wpcontents/plugins/somepluginname/
How can i do this directly via WordPress dashboard? Is it possible?

Unable to upload images in WordPress

I am unable to upload image in WordPress.
Error comes out like this:
"Unable to create directory wp-content/uploads/2014/04. Is its parent directory writable by the server? "
How can i change writable permission so that i can upload images properly through word press.
On some installations of WordPress, when I try to download a new theme or plugin or even update an existing plugin, I get the following message:
"To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host."
How can I remove these protection so that I can upload and delete plugins, themes, images without any FTP credentials?
You must access the control panel of your account at your hosting company. Look for File Manager and change the permissions of folder /wp-content/plugins and wp-content/uploads to 755, include sub-folders!

Wordpress posting to a password protected directory and a public blog

I would like to use Wordpress to store all my photos and documents as an asset management system but in a secure folder that I password protect. I would like to post the images I store there so I can see thumbnails. I can password protect the Directory "assets" using Cpanel.
But I would also like to publish a blog that the public can view normally on my website.
So it would be as follows:
mywebsite.com/assets (password protected)
mywebsite.com/blog (public)
Should I do two installations of Wordpress? Or how do I install it in one directory and I think use Categories to post? or would this then not password protect the assets?
You may jst set up one site
and in the wordpress theme,
set category 'hidden' for protected files. and use php code to check if its hidden for current user before displaying

Protecting files within folders on a wordpress site

I have a private wordpress website which is made 'private' with a plugin. Now it asks users to enter a password to view the site. However, if someone has the full link to files that are uploaded on the site, they can download them without any authentication. I managed to prevent a directory listing with .htaccess but files can still be downloaded. Is there a way to prevent downloads unless the user is logged in? Perhaps with .htaccess itself?

Resources