The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Protected downloads
How can I protect downloads so only members can access certain files? (Without putting the files in a database)
Can it be done with PHP alone? |
#2
|
|||
|
|||
Are you doing this with the vB member database?
|
#3
|
||||
|
||||
Yep
|
#4
|
|||
|
|||
Just include global.php in your scripts and add something like this:
PHP Code:
Code:
Only members can download files! |
#5
|
||||
|
||||
That's not actually protection though, if the URL of the file gets out anyone can download the files.
|
#6
|
|||
|
|||
Then i really subjest putting them in a table, and using a script to call the files by id, the files themselfs dont have to be in the db, as long as the link is there and you dont show the users the direct url.
This might help you aswell (if you are storing the files on diskspace): http://www.vbulletin.com/forum/showt...threadid=19021 |
#7
|
||||
|
||||
<a href="https://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=830" target="_blank">http://www.vbulletin.org/hacks/index...ack&hackid=830</a>
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|