M
M
miami_horror2015-09-07 12:24:02
Apache HTTP Server
miami_horror, 2015-09-07 12:24:02

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 answer(s)
S
ShamblerR, 2015-09-08
@ShamblerR

+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 question

Ask a Question

731 491 924 answers to any question