Version: 1.00, by okrogius
Developer Last Online: Dec 2005
Version: 2.2.x
Rating:
Released: 12-23-2002
Last Update: Never
Installs: 20
No support by the author.
Member Only Files
------------------------------------------------------------------------
What Is This?
There are plenty of hacks which allow you to protect regular php pages to be accessible only to your vb members. But how many hacks do you see that allow you to make your files member only? This one does preceisely that.
How Do I Install It?
Download attached file (download.php). You will need to edit some things on top of the file, fairly self explanatory. Then upload the file to the same folder where your vbulletin is installed. Now you can provide download links to your members such as: http://www.yoursite.com/forums/downl...y_material.zip
Please note that filename can only contain letters, numbers, and underscores.
How Can I Thank You For This Hack?
1. Click the install button.
2. Go to my forums (http://forums.cgshock.com) and register and activate your account.\
Thanks.
Help! This doesn't work.
If something doesn't work post your problem here and I will try to help you get it working. Any support requests outside of this thread (whether pm, im, email, etc) will be IGNORED.
Enjoy.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
doesn't seem to be working.. when i call a file it downloads a null file. hmm.
what about if you have a directory with your files called files but also have subdirectories with other files. how would you call the files in the sub directory, if at all possible?
Wow, great hack This is exactly the thing I've been looking for tonight. I did try the script found at www.phparena.net but that's a lot of files for one simple task
Originally posted by Sebastian doesn't seem to be working.. when i call a file it downloads a null file. hmm.
what about if you have a directory with your files called files but also have subdirectories with other files. how would you call the files in the sub directory, if at all possible?
Doesn't seem to be working - Make sure you changed the path in the configuartion properly and that the file that you're ttempting to download exists.
Directories - It's possible, but you have to keep in mind of some things. For security purposes the filename goes througha r egular expression check, so someone doesn't go to download?file=/etc/passwd or the lik. It is possible to do folders too, but it makes the whole file parameter validation a whole lot more tedious.
nope, i set it to full path.. I tried to download a .php file and it worked.. but when i try to download a .zip, .rar, .exe it downloads a blank null file.. weird.. can anyone verify this? i am running php v4.3.0
I recently wrote something similar myself. Good job.
The only problem I see with this is that it won't take people too long to figure out where the files are coming from. What you should do is have a separate folder for the files, and have it chmoded so only a script can call for it. I'm not sure if such a chmod setting exists though. This way, even if the person knows where to get it, he or she can't without passing through the script.
Obviously it shoudl be in a seperate folder. This is exactly hwo this file is written. And that folder should be in a non-webaccessible location as illustrated by the example url.