Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Restricting URL requests


Message #1 by Nik Beard <nik@s...> on Mon, 27 Nov 2000 18:20:58 -0000
Am creating an Intranet and would like to know how to prevent users typing

URLs into the address line. I want to restrict them to following links I

have created. Any ideas how to do it?



cheers,

Nik





Message #2 by simon@p... on Thu, 30 Nov 2000 04:00:10 -0000
hi



you can use the log utility (ActiveXObject "MSWC.IISLog") and it's

"Referer" property to see which page caused the user to get to this page.

if it's empty, you know that the user typed the address.



set log=Server.CreateObject("MSWC.IISLog")

if log.Referer="" then 'whatever you wanna do then





ps: i guess it only works with iis since the class name is iislog.



hope this helps you



simon


  Return to Index