简体   繁体   English

使用IP地址保护远程访问

[英]Secure a remote access with IP address

I want to prevent people to access my website outside my home and my father's home. 我想防止人们在我家和父亲家外访问我的网站。 Is it a good idea to check the IP of the connection and to grant the access or is it easily breachable ? 检查连接的IP并授予访问权限是一个好主意,还是容易被破坏?

As Jon Egerton already said, your method will work only if IP from your and your father homes are static. 正如乔恩·埃格顿(Jon Egerton)所说,只有当您和父亲的住所的IP地址是静态的时,您的方法才有效。

Two other methods for checking allowed connections comes to my mind. 我想到了另外两种检查允许连接的方法。

A Login Page requesting for username & password. 登录页面,要求输入用户名和密码。 The example assume you can use php. 该示例假定您可以使用php。

Allow only clients with a Certificate installed. 只允许安装了证书的客户端。 The example assume you're using and you can alter configuration of an Apache webserver. 该示例假定您正在使用,并且可以更改Apache Web服务器的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM