c# - WebClient client ip address -



c# - WebClient client ip address -

i have generic handler (ashx) homecoming file file system. handler not behind login. however, need homecoming file if request has been made within .net application via webclient object. user type ashx url in box , click upload button transfer file securely.

in ashx file how determine if request coming "http://myapp.com/upload.aspx"? give thanks you, virgil

in ashx file how determine if request coming "http://myapp.com/upload.aspx"?

you absolutely can't if handler doesn't require authentication. same way can write webclient consume handler, could. , handler has strictly no way of knowing request comes (other ip address). unless create ashx handler require authentication chance restrict caller ip address. in handler check whether request.userhostaddress corresponds ip address of myapp.com.

c# .net asp.net webclient ashx

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -