How to restrict access to Selenium from ethernet?

大憨熊 提交于 2019-12-11 19:00:01

问题


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 

回答1:


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.



来源:https://stackoverflow.com/questions/27421403/how-to-restrict-access-to-selenium-from-ethernet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!