Ok, I am using codeigniter and I have a secure login section. Inside the login users are able to download files.
What I need to do is stop people been able to access the file directly. I figure there will be a way using .htaccess to check for a authenticated variable that I could set in the POST array or something similar.
Any pointers would be good, was a bit of a hard topic to google because I'm not really sure what the best way to do it is.
Thanks.