请求IP不在范围内时出错

时间:2012-09-03 17:11:51

标签: http

我正致力于安全实施,并且我开发了IP过滤安全应用程序。所以我想知道如果用户的HTTP不在预期范围内,应该返回哪个IP错误代码?

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

首先,如果你的应用程序在服务器上运行......以下是合适的......

403 - Forbidden

403状态代码表示client cannot access the requested resource。这可能意味着wrong usernamepassword已在请求中发送,或permissions on the server do not allow what was being asked