且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将端口80从服务器上的8080转发到8080,可以阻止8080端口的用户访问我的网站吗?

更新时间:2023-01-17 21:54:55

是的,因为转发是在您的计算机上完成的,因此看起来就像在端口80上一样.工作正常.

Yes it will work, since the forwarding is done on your machine it looks to the outside as if it were on port 80. We had a similar set up and it worked fine.

当然,如果防火墙非常严格,它们可能还有其他可能会干扰的阻止规则(也许它们仅允许某些IP通过).

Of course if the firewall is very strict they might have other blocking rules that could interfere (perhaps they only allow certain IPs through).