• 0

Frame Redirect


Question

(Kinda hard to explain). I need a small script that will redirect the person from 1 page to another, if they loaded the page from history or something, rather than the link from my site.

I'm trying to stop people loading my image upload page from their favorites and just going to that page and ignoring the rest of my site.

Kinda hard to explain :happy:

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Try this code out...just replace "http://www.yoursite.com/index.html" with the URL of the page that has the link to your image upload page.

<html>
<head>
<title>Upload Page</title>

</head>

<body>
<script type="text/javascript">
var main='http://www.yoursite.com/index.html'
if (document.referrer != main)
	{
	window.location.href = main;
	}
</script>

</body>
</html>

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.