Click to See Complete Forum and Search --> : Redirecting with .htaccess...


Stormblast
02-13-2009, 04:14 PM
I have a site that is powered by WordPress. I've created a section for members only, but I also want to have member only downloads. Most plugins offer more than I need, so I would like to see if I can protect my downloads without a plugin but with custom code.

How can I protect a directory where I have my member only downloads so it can only be accessed by a direct link when a user is logged in?

Can this be done with an .htaccess redirect?


Sorry if the above does not make sense.

Mindzai
02-15-2009, 10:19 AM
The best way to protect your files imo is to place them outside of your DocumentRoot and write a small php script to fetch the files for users who meet your requirements.