Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/117897-hiding-a-page-and-folder/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.