Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - alternative to HTTP_REFERER

Reply
 
Old 10-28-2008   #1 (permalink)
JP


 
 

alternative to HTTP_REFERER

I have two C#.NET applications:

Application A
Application B

Application A will create a SQL GUID when the user first logs on

Whenever the user clicks on a link to go to Application B a new window opens
up and this GUID is passed to Application B via the URL.

Application B will verify that the GUID sent by Application A exist in the
database. If it does, then it will continue on it marry way.

My problem:
I want to verify that the application sending the GUID to Application B is
indeed Application A and not some other application. In the past I’ve done by
having the application name as a string parameter in the process that creates
the GUID in Application A.

The problem is that because I’m relying on the user to tell me they are
Application A when creating the token, they could easily claim to be
something else and I couldn’t stop the request to Application B.

I tried using HTTP_REFERER so that I could check headers to see if the same
application that created the GUID is the same application using the GUID. And
it also allows me to not rely on the user to tell me the truth. This works
wonderful as long as your using HTTP. Once your behind HTTPS, its not
available.

Is there an alternative way to find out the referring URL or some other
piece of information when a request comes in that could identify the calling
application that works with both HTTP(S)? Host IP address doesnt work either
if they are behind a proxy. Many say the HTTP_REFERER can be spoofed; that
may be true, but it’s far better than asking the users to be truthful when
sending it as a parameter.

For theoretical example:

I developed http://www.yahoo.com and I say only http://msdn.microsoft.com is
allowed to view content. If a .NET web page attempts to open yahoo.com I want
to look and make sure its msdn.microsoft.com and not another URL.

--
JP
..NET Software Developer

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Alternative to Quicktime Software
Alternative to Run Vista installation & setup
Is there an alternative? Vista mail
ADV-NEWS, Dell may offer Linux as alternative to Windows, OpenOffice as an alternative to M$ Office Vista General
Wab or WAB alternative? Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46