Page Access Restriction

K

Kyle Peterson

ahh opps.. misread question, sorry

you can check the server variables for the domain in question and allow or
not allow access based on the one the person is viewing the site with
 
P

Prabhat

Kyle Peterson said:
ahh opps.. misread question, sorry

you can check the server variables for the domain in question and allow or
not allow access based on the one the person is viewing the site with
Can you post one small code fragment of that server veriables check please.

Prabhat
 
E

Evertjan.

Prabhat wrote on 01 mei 2006 in microsoft.public.inetserver.asp.general:
Suppose I have one website www.mywebsite.com and I have one page in
this site as "myrestrictedpage.asp".

The page "myrestrictedpage.asp" should NOT be accesible from the
hosted website (www.mywebsite.com) instead of that the page can only
be accessible only from :
1) www.OtherWeb1.com/welcomeuser.asp
2) www.OtherWeb5.com/

[1]
You can do this rather safe by having the second server have an asp file,
that datamines the rendered html[+clientside script] from a secretly
named file on server 1.

See <http://www.aspfaq.com/show.asp?id=2173>
How do I read the contents of a remote web page?

As an extra measure the secret file could be restricted by

if request.servervariables("remote_addr") <> "IPofFirstServer" then
response.end
end if

==============

[2]
Or you can do this by redirecting the client's browser to the then
nonsecret file on server 1, where that latter file checks the referrer.

if Request.ServerVariables("HTTP_REFERER") <> "123.456.789.123" then
server.transfer "/404.asp"
then

This referrer [mind the double rr and single r bug in ASP] business is
not absolutely safe, I think.

==============

[3]
Working with passwords that go through the client is futile securitywize,
unless you use one-time passwords generated by one of the servers and
requested directly by the other, like in [1].
The generated password can be stored in an application variable and
destroyed upon first request. A collision with two near simultaneous
request is possible.
 

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
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top