Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
C#
Hello,

I created one website and now want to launch it. but I want to make accessible to my college only. website where user login. I search on some option are there like domain name contraint. but there is no emailid for student with college domain name. then how I can make it. please help.

options I have: 
1] get IP address, but i want it is also accessible to passout student.
2] get college database and check every user tying to resister. but not found as well solution.


What I have tried:

Hello,

I created one website and now want to launch it. but I want to make accessible to my college only. website where user login. I search on some option are there like domain name contraint. but there is no emailid for student with college domain name. then how I can make it. please help.

options I have:
1] get IP address, but i want it is also accessible to passout student.
2] get college database and check every user tying to resister. but not found as well solution.
Posted
Updated 8-May-16 6:23am

1 solution

If you want to limit accessibility, you have two options, as you stated: client IP address range and login.
IP won't work: It's trivial to get the client IP address, but if you must allow students in from their home locations then you can't use it: Using IP based Geolocation - and why it's pretty much useless.[^]. If you could restrict it to just "college IP" addresses, it's trivial. Otherwise, it's a waste of time.
To restrict logins, you would need to access the college DB and ensure that your users are still currently on it, or at the very least were on it at the beginning of term.
No other way will work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900