Repository navigation
Enabling the robots.txt #1798
|
Hi For some reason, Google is indexing a number of the /api/event I was wondering if anyone has figured out a way to prevent this. Any suggestions would be welcomed. |
Replies: 3 comments 5 replies
|
Yes, got this working on my self hosted instance, but not with a robots.txt file. If you use a reverse proxy like nginx, add the noindex nofollow header to all paths/locations: Then crawlers should ignore it. But once in the search index, it can only be deleted if you return a 404 for that url and request Google to delete it. |
|
The robots.txt seems to be located under /app/lib/plausible-0.0.1/priv/static/robots.txt in the docker image. services:
...
plausible:
...
volumes:
- ./robots.txt:/app/lib/plausible-0.0.1/priv/static/robots.txt |
|
I use a different approach with nginx configuration and add this to the server configuration |
Yes, got this working on my self hosted instance, but not with a robots.txt file. If you use a reverse proxy like nginx, add the noindex nofollow header to all paths/locations:
Then crawlers should ignore it.
But once in the search index, it can only be deleted if you return a 404 for that url and request Google to delete it.