I got information from another forum that you can protect a file by placing it outside of the www/ directory. i am doing a website when i need to protect a file and only make it accessible when someone pays for it (downloadable product). i do not have the option of placing it outside of the www/ directory with the host i am at. is there a way to protect the directory file with htaccess unless someone purchases it. let me know
Vapp
10:29 pm on Dec 15, 2007 (gmt 0)
You can set up a password protected directory to contain your file. You send the login and paswd information only to the people that paid for the file.
Here is a tutorial on how to set password protection:
[edited by: jdMorgan at 2:15 pm (utc) on Dec. 18, 2007] [edit reason] De-linked [/edit]
icemancast
4:25 am on Dec 18, 2007 (gmt 0)
now maybe this question should go under php... i don't know.
but what's to stop the link from being sent out? i know you can't stop someone from forwarding but a user name and pass that stays the same for every transaction isn't good either.
ideas?
g1smd
11:53 pm on Dec 19, 2007 (gmt 0)
There are ways to make the filename change every day, or week, so any link would only be good for a short time.
icemancast
12:20 am on Dec 20, 2007 (gmt 0)
that is a good option. combined with above advice...