How safe is it to install wp-cli within www folder
-
I have started using wp-cli to make administering my WP install easier, and I like it very much. However, I am concerned about the security.
The wp-cli guide wp-cli.org states that you should create a new directory within your web document root, download and put the wp-cli.phar file there and start it from there.
But what is preventing just about anybody from entering the address of the wp-cli file in his webbrowser and calling it directly, maybe passing parameters to it? For example, there is the wp-cli command “wp db clean”, which wipes the entire database…
Do I have to take precautions against unauthorized access like this, or does wp-cli already do this? I didn find anything in the documentation and would really like to know…
The topic ‘How safe is it to install wp-cli within www folder’ is closed to new replies.