This is just an informational message. Nothing to be worried about. Even I get the following message.
Starting ChromeDriver 83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Let me breakdown the message and explain.
Part 1: Please protect ports used by ChromeDriver
This is applicable to any program. The ports need to be protected whereas outsiders are not allowed to access. Since you are using the default whitelisting in Chromedriver, you get the message Only local connections are allowed
.
When you run this driver, it will enable your scripts to access this and run commands on Google Chrome.
This can be done via scripts running in the local network (Only local connections are allowed.
) or via scripts running on outside networks (All remote connections are allowed.
). It is always safer to use the Local Connection option. By default your Chromedriver is accessible via port 9515
.
See this answer if you wish to allow all connections instead of just local.
Part 2: prevent access by malicious code
There are different kinds of scripts that check whether these ports are open. Since you have opened the Chromedriver only allowing local connections
it is much safer, and you have to only worry about the scripts in your machine, that might try to hit the port of the Chromedriver.
But, if you had whitelisted IPs, other than the local connections
, then you have to protect the ports using firewall rules, via the Cloud service provider or your Operating System.
For more information, please see the Security Configurations given be ChromeDriver.