Gallery of pictures locked for single users
Автор: Søren Sønderhøj
Просмотрено 616,
Подписчики 1,
Размещенный 0
I created a picture gallery locked for special users, but how do I avoid that anybody just type the url for a picture and get access ?.
Размещено
for path of the picture, you need to use .htaccess.
for the page, if you locked the page and made it at private page, without username and password no one can access that.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.usx5host.com (6 months free Web Host for x5 users, promo code: usx56m)
http://www.usx5.com (Templates and support for x5)
http://www.wdesigners.us
Автор
If I lock the gallery page I need to specify user and password correctly, but anybody can display a specific picture via url.
If i protect my gallery folder with .htaccess to avoid this problem, my gallery page can't display any of my pcitures for any users.
no, they can visit your page but they can not access to the folder, for example if the pictures are being saved in folder name "img" if they put in (for example) www.yourdomain.com/img/, it will show errors to them, unless they know exactly the file name inside your folder.
alway remember, if some one see/visit your page, that means they already have everything you have inside your page, the smart one knows where to look, and normal users don't.
for locking the folders for browsing, simply put this inside your .htaccess
Options -Indexes
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.usx5host.com (6 months free Web Host for x5 users, promo code: usx56m)
http://www.usx5.com (Templates and support for x5)
http://www.wdesigners.us
Автор
Is there a way to give PHP scripts access to all files, and thereby controle access by existing lock function, but at the same time exclude all users from a subfolder.
Hello Søren Sønderhøj,
Unfortunately I cannot help you with the use of custom code, but if you have any doubts or issues on how to add them in the pages you made with WebSite X5 you can read ask me. Generally speaking since the functions do not depend on WebSite X5, you can search useful information about the custom code with search engines like google or wait until someone on the community of Answers can help you.
Many thanks!