I have an asp.net page (c#) that I execute daily.
I would like to know if there is a way to allow it to be executed only when its requested by the same ip as the server. Meaning, if another ip runs the page, nothing will happen or it will be redirected.
You can use
Request.IsLocalto check if the request is local.