How to create link to image that is only accessible from php script but not directly?

I am working on a custom WordPress avatar plugin. So I was wondering if there is a way to protect my images from outside direct access.
I Googled a bit and found that editing .htaccess file could be an option but I don’t want to jump onto that.
I totally wanna protect my wp-upload directory.

Any ideas?

Read more here: How to create link to image that is only accessible from php script but not directly?

Leave a Reply

Your email address will not be published. Required fields are marked *