Comment by za_creature
2 hours ago
> How do you even implement an ua check?
For this purpose, it looks like this:
if 'googlebot' in request.headers.get('user-agent', 'googlebot'):
return 403
2 hours ago
> How do you even implement an ua check?
For this purpose, it looks like this:
if 'googlebot' in request.headers.get('user-agent', 'googlebot'):
return 403
No comments yet
Contribute on Hacker News ↗