Use random URLs for attachment uploads
-
I’m building a secure portal where, once logged in, a given user will see any PDFs that are associated with them.
These files are uploaded in the backend with the regular media uploader, and I use Pods to extend the Media content type to have additional fields where we can associate the file with different users.
It is working well, but the problem is that when they click the PDF link, the URL is a standard wordpress URL (…/wp-content/uploads/2014/08/filename.pdf)
This isn’t secure since someone could guess the URLs of different files. So I was wondering if there is a way to still upload files form the backend, but have each file end up in it’s own unique directory (e.g. …/wp-content/uploads/sh729fhh344/filename.pdf)
Perhaps that alone isn’t even secure enough and there’s an even stronger solution someone might recommend.
Thanks very much in advance.
- The topic ‘Use random URLs for attachment uploads’ is closed to new replies.