Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nofollow tags #390

Merged
merged 2 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions temba/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.shortcuts import render
from django.urls import re_path
from django.views.generic import RedirectView
from django.views.generic.base import TemplateView
from django.views.i18n import JavaScriptCatalog

from temba.channels.views import register, sync
Expand Down Expand Up @@ -45,6 +46,7 @@
re_path(r"^assets/", include("temba.assets.urls")),
re_path(r"^jsi18n/$", JavaScriptCatalog.as_view(), js_info_dict, name="django.views.i18n.javascript_catalog"),
re_path(r"^storage/(?P<file_path>.+)$", PrivateFileCallbackView.as_view(), name="file_storage"),
re_path("^robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
]

if settings.DEBUG:
Expand Down
1 change: 1 addition & 0 deletions templates/frame.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
%meta{name:"description", content:"{% block page-description %}{{brand.name}} lets you visually build interactive SMS applications and launch them anywhere in the world.{% endblock %}"}
%meta{name:"author", content:"Nyaruka Ltd"}
%meta{http-equiv:"X-UA-Compatible", content:"IE=10"}
%meta{name:"robots", content:"noindex, nofollow"}

-if user.is_beta
%script{src:"{{ STATIC_URL }}js/urls.js"}
Expand Down
5 changes: 5 additions & 0 deletions templates/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-Agent: Googlebot
Disallow: /

User-agent: GPTBot
Disallow: /
Loading