469,275 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Tie a file an IP address

Please i would like to know if it is possible to restict a file to an
IP address. i.e: It would only open on a system based on its IP
address. Thanks.

Jul 31 '06 #1
4 1035
creamy wrote on 31 jul 2006 in microsoft.public.inetserver.asp.general:
Please i would like to know if it is possible to restict a file to an
IP address. i.e: It would only open on a system based on its IP
address. Thanks.
If you mean based on the remote client's IP address,
[insofar as no proxi is used by the cliest]
and by "open" "showing it's rendered content":

<% 'vbscript
q = request.servervariables("remote_addr")
If q <"123.456.789.123" then server.transfer "\404.asp"
%>
<html>
<body>
My terrible secrets
.....
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 31 '06 #2

"creamy" <bl**************@yahoo.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
Please i would like to know if it is possible to restict a file to an
IP address. i.e: It would only open on a system based on its IP
address. Thanks.
In IIS Manager find the ASP file or folder that you want to restrict access
to.
Open properties and selecte security tab
In IP address and domain name restrictions click edit...
Ensure Grant Access is selected then click Add..
Add the IP address or range of address you want to give access.

Anthony.
Jul 31 '06 #3
Thanks,
But the server.transfer... doesn't seem to work. What now. Thanx.

Aug 1 '06 #4

"creamy" <bl**************@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Thanks,
But the server.transfer... doesn't seem to work. What now. Thanx.
Could eloborate? In what way does it not work?

Aug 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tim218 | last post: by
8 posts views Thread by andrew.jefferies | last post: by
15 posts views Thread by lxyone | last post: by
11 posts views Thread by Peter Afonin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.