-
Trap IP Address
I would like to trap for certian IP address and Block all others. I am
looking for these address in the "CreateSession" and I then write a flag in
the Session file that this IP address is not authorized. Then in the
"ValidateSession" I check the flag an and set and error code. The error
code displays at the bottom of the webpage. I would like to trap the error
and then Link to a Webpage that explains that the user is not authorized to
access this web site.
Is this a good way to trap for the IP address and how do I trap the error
code to display the Autorization page.
Steve
-
Re: Trap IP Address
Steve,
Would you really want to have them come that far? I mean if you only want to
give some IP addresses access I would suggest you block them in the
firewall.
--
Regards,
Vincent Oorsprong
Data Access Worldwide
[url]http://www.dataaccess.eu[/url]
-
Re: Trap IP Address
[url]http://www.w3schools.com/asp/coll_servervariables.asp[/url]
REMOTE_ADDR
Returns the IP address of the remote host making the request
I do store the ip adress in a session record, but I don't do anything with
it yet.
John
"Steven Lemarr" <steve@jahl.com> schreef in bericht
news:j9sNEbjYJHA.4916@dacmail.dataaccess.com...[color=blue]
>I would like to trap for certian IP address and Block all others. I am
>looking for these address in the "CreateSession" and I then write a flag in
>the Session file that this IP address is not authorized. Then in the
>"ValidateSession" I check the flag an and set and error code. The error
>code displays at the bottom of the webpage. I would like to trap the error
>and then Link to a Webpage that explains that the user is not authorized to
>access this web site.
>
> Is this a good way to trap for the IP address and how do I trap the error
> code to display the Autorization page.
>
> Steve
>[/color]