c# - Make a page to be accessible only from server -


i have pages executed scheduled tasks regularly on server. how can make these pages accessible server? want if page url used anywhere other server should return empty page.

by way, don't want compare request.servervariables["remote_addr"] hard coded ip address

edit after original question edited:

create second web app on port that's not open.


original answer:

looks ip request comes. if different server's ip, reject call.

here's how can ip how user's client ip address in asp.net?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -