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

Block more crawlers and update webmanifest #778

Merged
merged 2 commits into from
Feb 16, 2024
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
1 change: 1 addition & 0 deletions lib/banchan/payments/payments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,7 @@ defmodule Banchan.Payments do
end)
|> Map.new(fn {currency, rate} ->
currency = String.slice(currency, 3..5)

{String.to_existing_atom(currency),
Repo.insert!(
Forex.changeset(%Forex{from: base_currency}, %{to: currency, rate: rate}),
Expand Down
7 changes: 6 additions & 1 deletion lib/banchan_web/components/layouts/root.sface
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/>
{/if}
<meta name="banchan-git-rev" content={Application.get_env(:banchan, :git_rev)}>
<meta name="robots" content="noai">
<.live_title prefix={"Banchan Art |" <> " "}>
{assigns[:page_title] || "The Co-operative Commissions Platform"}
</.live_title>
Expand Down Expand Up @@ -39,6 +38,12 @@
{/if}
<meta name="twitter:site" content="@BanchanArt">

{!-- The Common Crawl dataset. Used by GPT-3 (and GPT-3.5) and available for others. --}
<meta name="CCBot" content="nofollow">

{!-- Used by DeviantArt, ArtStation, etc. based on opt-in or opt-out --}
<meta name="robots" content="noai, noimageai">
rjt-rockx marked this conversation as resolved.
Show resolved Hide resolved

{!-- Icons and favicons --}
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
Expand Down
12 changes: 12 additions & 0 deletions priv/static/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
# Fuck AI
User-agent: GPTBot
Disallow: /

# The Common Crawl dataset. Original source for GPT and others.
User-agent: CCBot
Disallow: /

# The example for img2dataset, although the default is *None*
User-agent: img2dataset
Disallow: /

# Google's Bard and Vertex AI generative APIs
User-agent: Google-Extended
Disallow: /
24 changes: 12 additions & 12 deletions priv/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
"name": "Banchan Art",
"short_name": "Banchan Art",
"icons": [
{
"src": "/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Loading