entry to other pages

S

steever

Is there a way to block external entry to a particular
page? I have a page that gets more entries (due to outside
linking) than my main page. I'd like people to come in the
front door :)
 
S

Stefan B Rusynko

You can't block it but you could try a JavaScript to check the referrer page
See http://www.developer.irt.org/script/referrer.htm




| Is there a way to block external entry to a particular
| page? I have a page that gets more entries (due to outside
| linking) than my main page. I'd like people to come in the
| front door :)
 
J

Jon Spivey

If you changed that script a bit you could see wether the visitor has got to
the page by following a link from another site and if so send them to your
home page, eg
<script type="text/javascript">
if (document.referrer.indexOf('you.com') <0)location.replace('Default.htm');
</script>

Obviously this wouldn't prevent users typing the url directly into their
browsers or following a link from their favourites but it's a start

Jon
Microsoft MVP - FP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top