Tie a file an IP address

C

creamy

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.
 
E

Evertjan.

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
.....
 
A

Anthony Jones

creamy said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top