Protected access via ASP
If you need to ensure that the visitor of your website could not get into certain areas of your site, you can use a prepared script. It should be noted that the script does not address directly the page or directory only allows the visitor to enter a password access to otherwise "invisible" parts of your site. Access is set up in the Centre of Administration. For more thorough protection of the entire directory, you can use the service "Protected access via the user account".
The script allows you to insert up to 10 independent passwords for one ID code. In addition to passwords, the script needs to know the exact URL to function properly, redirect users in the event that it obtained permission (target page) and in the event that does not have permissions (access denied).
How and what should be done?
- First, in the Centre of administration of the grant ID number, without whom this service.
- Now you can create a form by using the tag <form>. The Most Important
step is the correct filling in the parameters of the tag of the <form>, so please pay close attention to. Tag <form> has two parameters for the action and method. The action parameter will have the value "http://form.slovaknet.sk/script/access.asp?ID = xxxxxxxx ".
The first part (the part before the question mark) where reference is made to the script that processes the form.
The second part of the script passes the parameter. With this parameter, you must complete specific information. for x The parameter add ID ID number that you received in step 1). The method parameter must have a value of post.
Example of a properly written tag <form>:
<form action="http://form.slovaknet.sk/script/access.asp?ID=12345678" method=post> - Then just add to the form a single tag < input type = text name = "Password" >, which creates a text box for entering a password. If you want to place the text use the asterisk dialog box, type parameter to the value of the password.
- And that's all. Place the finished form on your web site and try it.
Example of correctly manufactured form (figure for the ID dummy):
<form action="http://form.slovaknet.sk/script/access.asp?ID=12345678" method=post>
<input type=text name="Password">
<input type="SUBMIT" name="SUBMIT" value="Odeslat">
<input type="RESET" name="CLEAR" value="Smazat">
</form>