The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hi, i needed to have the attachments on the file system, but this is now a problem cause the filenames are only increased, so if someone wants to download all attachments, hea has only to make donload all attachments from 1 to...
i would need somehow to create the filename as a hash, or random unique, somehow, is it possible? thx |
#2
|
||||
|
||||
![]()
Each attachment already has a 32 digit filehash stored in the database. This is how vBulletin checks for duplicate attachments.
|
#3
|
|||
|
|||
![]() Quote:
i have path: /var/www/vbulletin/atatchments/ and there are all the attachments stored as: 1/1.attach, 1/2.attach... and if someone runs wget or any other downloader for 1-n he can download all the attachments, i would need something like: 1/hash.jpg if this is not done, it is a big security issue for those that have the files stored on fs |
#4
|
||||
|
||||
![]()
Store you attachments in /var instead of /var/www/vbulletin/attachments. Or place an .htaccess deny from all in the attachments directory. Then someone won't be able to download them all.
|
#5
|
|||
|
|||
![]()
lol, and how can i use it then on the forum??
|
#6
|
||||
|
||||
![]()
They are recalled via a PHP file so the browser doesn't access them directly.
|
#7
|
|||
|
|||
![]()
your right, i ment that they are called directly, thx
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|