How to restrict access to Selenium from ethernet?

480 views Asked by At

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

There are 1 answers

2
the_marcelo_r On BEST ANSWER

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.