c# - How to get IP of server that initiated redirect -


i hope me following question:

a user clicks hyperlink in page. server handles request , redirects client url on server b (more using response.redirect method in .net on server a).

i have been asked restrict access server b redirects originating server (by blocking ip's other server a's). @ first thought achieved using http 'referer' header, however, seems browser set url (rather ip), , not guaranteed so.

i guess there no way set http 'referer' on server in .net (to server a's ip)? (my intuition security hole). question is, how can restrict access server b redirects originating server a?

any appreciated,

martijn

no cannot way, browsers set referrer in conditions , client can spoof this.

the referrer header request header - not response header, server cannot set this.

you have server side (a token perhaps) long in control of both servers, pass token parameter in url redirect to.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -