Prevent site from being indexed by search engines? I have two requirements for my site


I don't want my site to be indexed by search engines
Anonymous users should not be able to see any content of the site


I would have been satisfied with ip restriction in the .htaccess file but I cannot use that because this site is part of a multisite setup and as far as I know one cannot use .htaccess files in sites/mysite1/.htaccess and I don't want to go down the symlink route at the moment.

Right now I am using:


Shield (for Apache authentication and to prevent non content elements from being previewed)
Metatag (&lt;meta name="robots" content="noarchive, nofollow, noindex, noodp, nosnippet" /&gt;


but thinking about it some more I thought that perhaps just using the Shield module wil prevent my site being indexed. Or even just disabling the  View published content permissions?

So my questions are:


Will the Shield module prevent my site from being indexed?
Will disabling the View published content permissions prevent my site from being indexed? (with the downside that part of the site can be previewed)
Question 1: Shield will deny access to anyone that doesn't know the credentials, including robots.  Using this module should be suffiscient for the use case you describe.

As long as you use Shield, metatags doesn't matter.  If you do not use Shield, the metatag you list will prevent your site to be indexed by polite search engines (such as Google - read about Google's policy here).  It will have no effect on some other (impolite) search engines (such as Baidu).

Question 2: Disabling "View published content" for the anonymous user role will prevent any content on the site from being indexed.  Your site itself, and the placeholder string that is shown to the anonymous user when viewing published content is disabled ("No content has been created yet.") is still visible and may be indexed by search engines.