Hi.

I am developing a system here in the school that automatically sends employees email notification (using SQL Server 2008 jobs) if they are late. In this case, the email contains a link to a page where they can file their time in instead of tapping in the machine.
The page is built using ASP.Net and C# in codebehind.

The page must only be accessible in the campus and this is stored in a server. (server33) is the name of the server with an IP Address of 173.***.**.***
Now, if the employee receives an email and tried to access it outside the campus. it should display
"The page is not accessible off-campus".

Is there a way to detect if site was accessed outside the school using c# or any medium>?

I really need your help and any answer will be greatly appreciated!

Thanks and have a wonderful day!