Add examples of siteconf, set user_agent to Googlebot for Twitter

This commit is contained in:
Tatsuya Kinoshita
2020-12-19 13:20:49 +09:00
parent c23ed204ce
commit 1d967a4d42
2 changed files with 12 additions and 0 deletions

View File

@@ -47,6 +47,12 @@ user_agent "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1"
Tell Google we're actually Lynx. (So they send us a text-browser friendly
results page.)
url m!^https?://([a-z]+\.)?twitter\.com/!
user_agent "Googlebot/2.1"
Tell Twitter we're actually Googlebot. (So they send us a page without
rejection of a JavaScript disabled browser.)
===== Regular expressions notes =====
Following expressions are all equivalent: