Comment

Comment by za_creature

> 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
parent za_creature 11 hours ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton