0

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 
Enlightened
  • 239
  • 2
  • 13

1 Answers1

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.

the_marcelo_r
  • 1,847
  • 22
  • 35
  • Oh, Selenium just doesn't have such a config parameter and I need to do this with iptables, do I? – Enlightened Dec 11 '14 at 11:42
  • I would say so, there's a similar question here: http://stackoverflow.com/questions/16206491/restrict-selenium-2-port-localhost-only-no-external-ip-access – the_marcelo_r Dec 11 '14 at 16:49