Skip to content

Instantly share code, notes, and snippets.

@subimage
Created November 24, 2013 07:53
Show Gist options
  • Save subimage/e29080239104edb0a9b5 to your computer and use it in GitHub Desktop.
Save subimage/e29080239104edb0a9b5 to your computer and use it in GitHub Desktop.
Apache directives to block nasty Baidu spider from stressing out your server.
<Directory "/your/path/here">
Options FollowSymLinks
AllowOverride None
Order allow,deny
# evil mean spider...
Deny from .baidu.com
Allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment