I am wondering how big of a job it is to be able to do the following:
I want to have certain web pages on a site only accessible by specific computers. Of course, I can always provide usernames and passwords, but I want it restricted even further.
To illustrate:
- I give User-A access to page-A.
- I give User-A a username and password to access page-A.
- User-A tries to share the username and password with a friend (User-B).
- User-B tries to access page-A with User-A's credentials, but it does not work because User-B needs to be on User-A's computer to do so.
I know that this is possible to accomplish, since financial institutions employ this kind of security, but can I implement it on my my own? If so, how?
--Edit--
Yani mentioned that filtering by IP would not be wise, since user IP addresses often change. My question now turns to the use of sessions or localstorage/webstorage to control access to certain webpages.
What local data would you need to pull? I would imagine that a database would be required to store computer data for future reference by the system.