forked from indymedia/epicyon
Match anything beginning with robot
parent
e8ec579b9f
commit
041b50fd2c
|
@ -210,7 +210,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
def _robotsTxt(self) -> bool:
|
def _robotsTxt(self) -> bool:
|
||||||
if not self.path.lower().startswith('/robots.'):
|
if not self.path.lower().startswith('/robot'):
|
||||||
return False
|
return False
|
||||||
msg='User-agent: *\nDisallow: /'
|
msg='User-agent: *\nDisallow: /'
|
||||||
msg=msg.encode('utf-8')
|
msg=msg.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue