Jump to content

Files Download


KYKK
 Share

Recommended Posts

I made some stuff put them in rar files, and want to upload to websites and only allow registered user to download them,since i need to upload it to the webserver so other people can download, when people use like website downloader download the whole website, my files will be download too right? because its on the web server...2nd question is, lets say i put my rar file in [url="http://www........com/downloads/whatever.rar"]http://www........com/downloads/whatever.rar[/url]and I put something like [codebox]if the user is login show him this<a href="http://www........com/downloads/whatever.rar">download here</a>[/codebox]everybody can download the file by just going to [url="http://www........com/downloads/whatever.rar"]http://www........com/downloads/whatever.rar[/url]so how do I make the files so it can only be download by registered users ?
Link to comment
Share on other sites

wouldn't you have to put the links behind a password protected page, or with a login script? With PHP for example, after people login you could set a cookie to a value indicating that they are 'registered', and then those people can access pages as long as they are 'registered', also, you could probably make it so you have a download script that checks for value of 'registered' too. Something like that :)

Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...