Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop other servers from requesting

Status
Not open for further replies.

firsttube

Technical User
Apr 21, 2004
165
0
0
CA
I have some applications on my server that I don't want people to link to from pages on their server. Is there any way to do this? Server variables? I only want people to be able to use the applications while they are on my site only.

thanks

Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
 
Have a look at the Request.ServerVariables collection...
 
yes, I had a look at them. I'm wondering which one to use for this purpose?

thanks

Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
 
Perhaps something like this on every page (or in a file included on every page) could work:

If jpsvbPartOfURL(Request.ServerVariables("HTTP_REFERER"), "host") <> Then
Response.Redirect "End If


Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
Access Database Sample, Web Database Sample, ASP Design Tips
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top