Manual:Protect.php/en

Details
protect.php file is a maintenance script that handles protecting and unprotecting a page.

Options/Arguments
protect.php takes title as their first argument on which you want to do action.

protect.php accepts following five others options as well.

Doing action with username "Foo"
if you don't pass --user option to script then it will do action with user User:Maintenance script.