Preventing site indexing for staging
Tony James Thinking of a bio :)
For your staging sub domain you would generally have that password protected or restricted by IP address. Password protection is available as a one click solution in the control panel under security. For IP restriction you can simply add a few lines to your .htaccess file as below which would take care of that.
In your .htaccess
order deny, allow deny from all allow from <YOUR IP>