SoulEyes Photography
*SoulEyes Photography>>>Photo Gallery

How do I stop visitors from going to a specific page of my website?



I have seen this before but dont know what to do or how to script it. OK, lets say you have a flash website and one of the buttons in the menu is for a picture gallery html page ( that opens in a _blank window)... how do i stop visitors from skipping the whole website experience and just bookmarking the photo gallery page. example: your domain name is: whatever.com your gallery location is: whatever.com/pictures.

i dont want the visitors to be able to go to the images page unless they go thru the website and click the link. I have seen sites plenty of times where you cannot go to a specific page unless brough there from a certian page. this is very common lets say in membership sites. you cant go right to the members page address or it will take you back to the beginning or give a warning.


how do you set this up? is it simple html? basically, i just dont want my visitors going right to my gallery page unless they actually enter the website first.

Stick this script into your page's header:

<script language="javascript" type="text/javascript">
if (document.referrer != "http://www.abc.com/index.htm") {
window.location="http://www.abc.com/index.htm"
}
</script>

(changing www.abc.com/index.htm to whatever your desired referring page is.)
Okay this is fairly easy.

On your gallery page, insert some ASP or JavaScript code.
Look at the variable http_referrer to assess where the user is coming from (ie: the prior page they've visited). If it's not your home page or whatever, redirect them there via a <meta> tag. I hope this makes sense.
IT services industry experience
Tags
Photography School Photography Magazine Photography Jobs Photography Equipment Photography Courses Photo Gallery Photo Essays Art Gallery Wedding Photography Stock Photography
Related information
  • PHP And Using mouse HOW?!!?
  • Want to win a quick ten points ? Well summarize this article?
  • I have a big problem now and need serious help; a friend of mine has windows vista and i have xp, need help?
  • Translate the following words from English to Spanish?
  • How do you upload a picture to your yahoo profile?
  • Please help! Diolog box appears everytime i turn on my laptop.?
  • What program can view GIF images in vista?
  • Ok Ladies, who would you choose?
  •  

    Photography Categories--Copyright/IP Policy--Contact Webmaster