You can restrict access to specific IPs or subnets:
You can restrict access depending on the country of the visitor using .htaccess... Examples of directives can be found here.
You must create a file in the root directory of the site robots.txt with content like this:
User-agent: * Disallow: /
A more detailed description of the syntax of the robots.txt file can be found on the Internet yourself.