View Full Version : trying to mod download.php
trying to mod this download.php to reject members who havent been authed by the email.
heres what i got:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
however when i do that i did a test user and i was still able to download the file.
any ideas?
Steve Machol
21 Apr 2002, 21:16
Out of curiousity why don't you just set the appropriate permissions for the 'Users Awaiting Email Confirmation' group? Just set 'Can download attachments' to 'No'.
no, the download.php is an external file from vbulletin, my can download attachments is already at "no"
Steve Machol
21 Apr 2002, 21:24
Ah, ok. I should have noticed this wasn't a normal vB file!
especially with the
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
up top hehe :D
anyways still looking for a solution :)
I seemed to fix this by totally re-doing my download.php and putting it in my forums directory. anyways heres what i did:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
i love meta refresh hehe :D anyways feel free to use it, just change the address, also the to link to the file:
Usage:
if you have www.domain.com/files/yap.zip you would make the link:
http://www.domain.com/forum/download.php?file=yap.zip
if you have a link like:
www.domain.com/files/coolstuff/yap.zip you would make the link:
http://forums.voogru.com/download.php?file=coolstuff/yap.zip and ect.
*wonder if this would qualify as a hack :paranoid:
What's the point in this hack if you can see the filename in the URL? You can just go straight to it without using download.php.
you dont understand it, if you set the ure to refresh to like
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
when you link to the file you would put.
download.php?file=yap.zip and it would access
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
i just put the main dir as an example, the file could be called from anywhere on the server only showing the path and file after the directory where the files are hiden, i cant really explain it that well :ermm:
In that case don't use META tags, it's very easy to find them out (just view the HTML source!). Use PHP's header() function. (i.e header('Location: yourfile');) :)
yeah but they will have to be quick if u set the refresh to 0
You can "Save Target As..." and have the HTML page downloaded to your computer.
Ill play with that header thing once my site gets back up, sites going
down everyday now :angry:
wow thanks FireFly, i got it working :)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
hmm, vbulletin paresed it :confused: anyways thanks, and i got it working without the meta-refresh now :)
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.