473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Page Access Restriction

Hello Friends,

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/

How can I do this? Please suggest.

Thanks
Prabhat
May 1 '06 #1
4 1507
something like www.aspprotect.com maybe, or you can do it on your own as
well
are you talking about password protecting certain pages...
"Prabhat" <no********@hotmail.com> wrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
Hello Friends,

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/

How can I do this? Please suggest.

Thanks
Prabhat

May 1 '06 #2
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

"Prabhat" <no********@hotmail.com> wrote in message
news:O3**************@TK2MSFTNGP05.phx.gbl...
Hello Friends,

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/

How can I do this? Please suggest.

Thanks
Prabhat

May 1 '06 #3

"Kyle Peterson" <ky*****@hotmail.com> wrote in message
news:#F**************@TK2MSFTNGP05.phx.gbl...
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
May 1 '06 #4
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ed Slen | last post by:
Hi, Guys! Have a question about xsd restriction: I am having an element "state" and it could be US state (Which is easy) or Canadian postal code which is easy too (both rules are working...
1
by: hre1 | last post by:
hello stan, thank you very much for your fast replay! your solution will help to solve my problem. but i try to understand !why! sqc and xmlspy produce this messages: SQC means:TYPE...
3
by: Brett Gerhardi | last post by:
Hi all, can anyone explain why the following isn't valid? <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
0
by: Deep Purple | last post by:
I started with the following error... ------------------------------------------------------- An error occured while loading the schema with TargetNamespace 'http://www.w3.org/2001/XMLSchema'...
5
by: bclark76 | last post by:
I am getting a strange error, maybe someone knows why it is occurring.. I get the following error when I try to validate Untitled8.xml in Altova XMLSPY: Validation error in another file:...
16
by: Alan Jones | last post by:
Hello everyone, any help would be greatly appreciated. :) What I'm trying to do may not be advisable, but here goes... I want a page named signature.php to appear conditionally as an include...
11
by: Brad | last post by:
Does anyone know of a method to reroute a web page to a file. When someone comes to a web page, I would to reroute the output from a web page to a file on our site. The web page we are rerouting...
6
by: burkley | last post by:
In XML Schema, is it possible to derive a complex type via restriction and have the new derived type be in a different namespace than the original base type? I've banged on this for 2 days now...
9
by: MC | last post by:
I would like to display a timer in the corner of the page that shows the user how many minutes:seconds till the session times out. Are there any good examples out there? Google has again failed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.