Log in

View Full Version : Permissions on files? Avoid linking?


stryka
06-16-2003, 09:13 PM
Using the VB userDB.. how do I implement a permission system based on a file....

Here's what I mean... i would like to create a member's only audio/video section on a Non-VB page that contains permissions. To access the page it will check if you are a member....

BUT>>> HOW do you avoid unregistered users from directly linking to the specific file since the a/v files will be on my server?

NOTE: I would like my members to be able to directly link to the files from a post within the msg board... but I don't want anyone to link directly from outside of the main site...

Thanx in advance!

Xenon
06-17-2003, 07:42 AM
hmm, wouldn't be as easy.

for checking if someone is a member you have to require global.php and then do an if conditon $bbuserinfo[userid] > 0.

as for saving files of direct linking, there's no way.
but you can use a trick, instead of give out filelinks, use a php file wich makes a "hidden" forward to the file.
i don't know if it would work for all files, i just used it once for images

Chris M
06-17-2003, 08:19 AM
@Xenon - Don't quote me on this, but I think the PaDBFile thingy does this;)

Satan

Xenon
06-17-2003, 08:21 AM
hmm i don't know it, but you could be right ;)

stryka
06-19-2003, 07:02 PM
what's the PaDBFile thingy???

You left me hanging there...

how do porn/pay sites do it? Avoid you from accessing their images directly?

is it .htaccess?

Hmph... was thinking... the robots.php hack used HTACCESS and your VB login info..

Can that work somehow?

SmEdD
06-20-2003, 12:43 AM
.htaccess

Jim Mayhugh
06-20-2003, 02:24 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=46963&highlight=download.php" target="_blank">Members Only Files</a>

Take a look at the above hack. It might be what you can use to get started.