seleniumselenium-server

How to restrict access to Selenium from ethernet?


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 

Solution

  • 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.