by iams · 6y ago · 0 comments
User-agent: googlebot
#User-agent: bing
User-agent: yandex
Disallow: /
why would it be interpreted as a blank line? If you remove everything after the #, that includes the new line characters at the end of the line. Leaving: User-agent: googlebot
User-agent: yandex
Disallow: / User-agent: googlebot
User-agent: bing #behaved-badly
User-agent: yandex
Disallow: /
if # removes everythin afer the #, then it would be User-agent: googlebot
User-agent: bing User-agent: yandex
Disallow: /
which results into the whole line " User-agent: bing User-agent: yandex" beeing thrown out as malformed, so only googlebot would be disallowed.Edit: I don't know how to escape in HN formatting. Obviously there are italics where literal asterisks should be.
*** You can just use three asterisks. ***
* You can just use three asterisks. * Unfortunately you need something after them though. ***
Unfortunately you need something after them though. *(`^#.$`), and others will interpret it as you have (`^#.?\n`)*
(Not sure where you intended those asterisks. I made my best inference.)