Prohibit access to certain WebPage
Techniques
This section makes it possible to gather a whole of techniques or scripts which have the originality to manage to solve a difficulty with the least effort or which are particularly effective...The grayed entries relate to the future headings which will supplement soon this toolbox.
Techniques / Prohibit access to certain WebPage
- How to filter access to certain webPage :
This tutorial is intented to learn you how it is possible to prohibit access to certain page. A technique is to check the referrer of the visitor : if he come from a page of your web site let him in, else display a default message :
<% 'Specify the url or our domain site_url = "http://dypso.free.fr" 'domain name dom_name =Lcase(left( Request.ServerVariables("HTTP_Referer"),len(site_url))) 'Check for referring URL If dom_name <> site_url then 'People are not allowed to see this page ' they are redirected response.redirect "default.asp" End if 'Here write the content for people allowed 'to access it : Response.Write "Welcome to this WebPage" %>
A question ? Use the forum !.