GDIndex icon indicating copy to clipboard operation
GDIndex copied to clipboard

Password Access

Open feralsja opened this issue 6 years ago • 9 comments

hi can you help me a way so that the password is only requested when accessing the index, for example I share a video link to my friend he does not have to enter a password to watch the video

I don't want to disable the password in the index because I only want to share certain files

Thanks

feralsja avatar Feb 08 '20 16:02 feralsja

you can change line 628 if (self.props.auth && !doBasicAuth(request)) { to if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { it means only access directory need auth

ju4tin avatar Apr 02 '20 18:04 ju4tin

you can change line 628 if (self.props.auth && !doBasicAuth(request)) { to if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { it means only access path need auth

This is great, How about to use security tokens in file, so others can't use the link to others site?? can you help me to do it??

Juventino666 avatar Apr 13 '20 08:04 Juventino666

you can change line 628 if (self.props.auth && !doBasicAuth(request)) { to if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { it means only access path need auth

This is great, How about to use security tokens in file, so others can't use the link to others site?? can you help me to do it??

Original code work fine,both access path and file need authorization.setting in line 7~9

ju4tin avatar Apr 13 '20 19:04 ju4tin

you can change line 628 if (self.props.auth && !doBasicAuth(request)) { to if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { it means only access path need auth

This is great, How about to use security tokens in file, so others can't use the link to others site?? can you help me to do it??

Original code work fine,both access path and file need authorization.setting in line 7~9

Yes i knew it, what i want is to use your code: if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) {

then the file on it, example: video.mp4 direct link will put in jwplayer but also with additonal security token that only i know about the token, so others can't use my direct link with their site/player.

Can you help me about this @ju4tin ?? i will donate to you for solve this problem..Thanks.

Juventino666 avatar Apr 14 '20 00:04 Juventino666

you can change line 628 if (self.props.auth && !doBasicAuth(request)) { to if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { it means only access path need auth

This is great, How about to use security tokens in file, so others can't use the link to others site?? can you help me to do it??

Original code work fine,both access path and file need authorization.setting in line 7~9

Yes i knew it, what i want is to use your code: if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) {

then the file on it, example: video.mp4 direct link will put in jwplayer but also with additonal security token that only i know about the token, so others can't use my direct link with their site/player.

Can you help me about this @ju4tin ?? i will donate to you for solve this problem..Thanks.

use original code,and request file with a Authorization Header

ju4tin avatar Apr 14 '20 16:04 ju4tin

Original code work fine,both access path and file need authorization.setting in line 7~9

Yes i knew it, what i want is to use your code: if (request.url.endsWith('/')&&self.props.auth && !doBasicAuth(request)) { then the file on it, example: video.mp4 direct link will put in jwplayer but also with additonal security token that only i know about the token, so others can't use my direct link with their site/player. Can you help me about this @ju4tin ?? i will donate to you for solve this problem..Thanks.

use original code,and request file with a Authorization Header

Already tried that, sadly jwplayer is still ask about user & pass, even i already put user:pass@ within direct link..

Juventino666 avatar Apr 14 '20 16:04 Juventino666

@sajad-tnt Google Drive ID is already visible to client side, what you can do is to not share the folder to other except using GDIndex.

maple3142 avatar Sep 13 '20 05:09 maple3142