is it possible to limit access to website to speci

2019-08-29 11:24发布

问题:

Note: I am not asking how to limit asking to a site by means of a static IP address, this is already done in my .htaccess file. I have a particular site I will need to access on the road often but will only be doing so from a particular machine.

In short, is it possible to limit access to a particular website based on something specific within a pc other than IP?

回答1:

Set up SSL on the web server and authenticate to it using a certificate that only exists on that particular machine.

Have a look at this article for an introduction.



回答2:

Pehaps you could manually create a cookie just for you and then your site will let you in?



回答3:

do authentications on the site..quick form that requires a specific username and password, once its set, create a session that keeps the information.. all the pages you dont want others to see just check if the session is present if not send them to the login form..



标签: php .htaccess ip