Jump to content

Files Download


KYKK

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 :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...