I am attempting to block internet search engine bots on my small staging server total the virtual hosts. The next works within an .htaccess apply for a particular virtual host:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} slurp [NC]
RewriteRule (.*) / [L,F]

However, I would like this to become server-wide. So, I have added it towards the httpd.conf file while using directive. This doesn't work. Any ideas? This is actually the snippet from the Apache configuration file:

<Directory />
    Options FollowSymLinks
    AllowOverride All

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} googlebot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} msnbot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} slurp [NC]
    RewriteRule (.*) / [L,F]
</Directory>

Thanks ahead of time!