Answer the question
In order to leave comments, you need to log in
How to prevent access to a specific page on WP for GoogleBot via htaccess?
Hello!
there is a post
on the host WP - domain.com/2015/09/06/test-1
or a page on domain.com/test-1
how to restrict access to them for Googlebot (just block by user agent)?
It seems that the task is not difficult, but I don’t understand xtackcess at all ((
Answer the question
In order to leave comments, you need to log in
+1 You should still allow him
, he is generally kind to robots.txt and even js css files from disalou folders are not taken.
2. don't use Google sourly
3. If it's very harsh
RewriteCond %{HTTP_USER_AGENT} ^GoobleBot*
RewriteRule ^2015/09/06/test-1$ /404.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question