Fix #413. Exclude Let's Encrypt bot from blacklisted bots

This commit is contained in:
Romain Dessort 2019-03-24 09:50:04 -04:00
parent d8616d1e68
commit 0033f39b85
No known key found for this signature in database
GPG Key ID: 876B9AB48BB62212
1 changed files with 1 additions and 0 deletions

View File

@ -1,3 +1,4 @@
RewriteEngine on RewriteEngine on
RewriteCond !%{HTTP_USER_AGENT} "Let's Encrypt validation server" [NC]
RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC] RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC]
RewriteRule .* - [R=403,L] RewriteRule .* - [R=403,L]