如何限制从以太网访问Selenium? [英] How to restrict access to Selenium from ethernet?
本文介绍了如何限制从以太网访问Selenium?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有Selenium服务器正在监听4444端口.我该如何让Selenium仅侦听来自本地主机的连接,而不侦听整个Internet的连接?
I have Selenium server listening to 4444 port. How can I make selenium listen to connection only from localhost but not from the whole internet?
或者还有其他方法可以保护硒吗?
Or is there any other way to secure Selenium?
我的硒服务器使用以下参数运行:
My selenium server is run with such parameters:
java -jar selenium-server-standalone-2.44.0.jar -p 4444
推荐答案
这超出了应用程序本身的范围,您可以将Selenium服务器放在反向代理(例如Apache Web Server)的后面,允许本地连接,或仅配置操作系统的防火墙.
This is something that is out of the scope of the application itself, you could place your Selenium server behind a reverse proxy (e.g., Apache Web Server) and just allow local connections to it or just configure your OS's firewall.
这篇关于如何限制从以太网访问Selenium?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文