RewriteRule to block... where to redirect is best?

I have a RewriteRule in my htaccess file to block certain spiders.

Right now I have it working and it’s sending them to a 403 Forbidden error.

But I could also send them to 127.0.0.1

Which would be best? Does it make any difference?

#1

Regards,

DK

Which one is better for blocking a spider or bot?

This one I’m using…

Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} "baidu" [NC]
RewriteRule .* - [F,L]

Or this one…

Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} "baidu" [NC]
RewriteRule ^.*$ http://127.0.0.1 [R,L]

Sparky,

What RewriteRule? What spiders? Send them to their 127.0.0.1? Please define.

Regards,

DK