PDA

View Full Version : Odd question


outermatrix
03-10-2002, 04:35 PM
Hello, new here, and of course I have a question however odd it may sound. I am wondering if this is even possible.

Let us say you have an internal page which you don't want people to be able to access by them typing the url into their browswer manually or accessing it by bookmarking that internal page. You want them to force them to hit the main site first...access the internal page only from within the site.

ie. -http://www.yourdomain.com/test.htm

is there any way to prevent access via typed url or bookmark...make them only able to access that page from within the site?

Not sure If I am explaining that right..any suggestions or input is welcome.

Bonkom
03-12-2002, 09:21 AM
OK now you could try something like

var test

test = document.referrer()

if (test == "http://www.yourdomain.com/test.html") {

alert("Welcome")

}

else {
window.location="http://www.yahoo.com"

I am not to sure but that may be a solution


p.s. this is just a rough gide it may not work mods please change if i am totaly wrong