Rommeo Posted August 3, 2008 Share Posted August 3, 2008 hi For my web-site, i want a page/folder that can only be seen by me. I have 2 questions about this ; 1-) i think this code should work, but dont know why it does not work, what's wrong here ? #if referer from this domain ; RewriteCond %{HTTP_REFERER} ^http://www.mywebsite.com/family/members.html [NC] #enter this page : RewriteRule http://www.mywebsite.com/family/photos.html [NC,F] 2-) I want to hide a direction ( "/myphotos/" ) from site-explorers ? Is it possible to hide by mod_rewrite ? Or is there any other way to hide a direction ? I want noone can know that whether there is a "myphotos" folder. I just wanna see the pictures by calling from a web page, not directly. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/117897-hiding-a-page-and-folder/ Share on other sites More sharing options...
HaLo2FrEeEk Posted August 9, 2008 Share Posted August 9, 2008 You can use php for that, just make a little script that will have a GET variable that calls the name of the picture, and have it return the picture using the name and a set php variable in the script containing the path. Quote Link to comment https://forums.phpfreaks.com/topic/117897-hiding-a-page-and-folder/#findComment-612178 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.