c# 识别 Https 数据包
目前我正在从事一个防火墙项目。我要做的第一件事是,如果任何用户想要访问非法网站,我不会让他这样做。所以我正在跟踪 TCP 数据包。到目前为止,对于 HTTP 请求我没有任何问题。但对于 HTTPS 我确实遇到了一些问题。我无法识别 HTTPS 数据包。有人可以帮我吗?
谢谢。
Presently I am working on a firewall project. First thing I have to do if any user wants to access illegal site I will not let him do so. So I am tracking TCP packets. So far for HTTP requests I don't have any problem. But for HTTPS I do have some problems. I am unable to recognize a HTTPS packet. Can any one help me on that please?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法识别 HTTPS 请求(也就是说,无法区分 HTTPS 请求与任何其他 SSL 包装的请求)。
您可以做的最好的事情就是了解不同 SSL 握手的格式(Google 搜索< /a>)并识别它们并将目的地与您的黑名单进行比较。
There's no way to recognize an HTTPS request (that is, there's no way to distinguish an HTTPS request from any other SSL-wrapped request).
The best you could do would be to learn the format of the different SSL handshakes (Google search) and recognize them and compare the destination to your blacklist.