blockchainappfactory's picture
v1.0 lookup tool
bdec069 verified
Raw History Blame Contribute Delete
8.89 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Crypto Advertising and Promotion Rules by Country: lookup</title>
<meta name="description" content="Search 58 crypto-asset advertising and promotion rules across 37 jurisdictions by country, region and status. Data under CC BY 4.0.">
<meta name="robots" content="index, follow">
<style>
:root { --navy:#0b1f3a; --teal:#2dd4bf; --amber:#fbbf24; --ink:#1e293b; --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
header { background:var(--navy); color:#fff; padding:28px 20px 22px; }
header .wrap, main, footer .wrap { max-width:1180px; margin:0 auto; }
h1 { margin:0 0 6px; font-size:26px; }
header p { margin:0; color:#b9cbe0; font-size:15px; }
main { padding:20px; }
.note { background:#fff; border-left:4px solid var(--amber); padding:10px 14px; border-radius:6px; font-size:14px; margin-bottom:16px; }
.controls { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.controls input, .controls select { width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:6px; font-size:15px; background:#fff; }
#count { font-size:14px; color:var(--muted); margin:6px 0 10px; }
.tablewrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:8px; }
table { width:100%; border-collapse:collapse; font-size:13px; min-width:960px; }
th { background:var(--navy); color:#fff; text-align:left; padding:9px 8px; position:sticky; top:0; }
td { padding:8px; border-top:1px solid var(--line); vertical-align:top; }
td.c { text-align:center; white-space:nowrap; }
.y { background:#e6faf6; }
.ban { background:#fdecec; }
.j { font-weight:600; color:var(--navy); }
.small { font-size:12px; color:var(--muted); }
details summary { cursor:pointer; color:var(--navy); font-size:12px; }
a { color:#0f5f8a; }
footer { background:#fff; border-top:1px solid var(--line); padding:18px 20px; font-size:14px; color:var(--muted); }
@media (max-width: 760px) { .controls { grid-template-columns: 1fr; } }
</style>
</head>
<body>
<header>
<div class="wrap">
<h1>Crypto Advertising and Promotion Rules by Country</h1>
<p>Global dataset of how regulators treat crypto ads, finfluencers and promotions. Version 1.0 (2026-Q4).</p>
</div>
</header>
<main>
<div class="note">Information only, not legal advice. Rows marked "unverified" were not confirmed from a primary source; read the notes and the linked source before relying on any row.</div>
<div class="controls">
<input id="q" type="search" placeholder="Search country, regulator, rule or summary" aria-label="Search">
<select id="region" aria-label="Region"><option value="">All regions</option></select>
<select id="ads" aria-label="Ad status"><option value="">All ad statuses</option></select>
<select id="ver" aria-label="Verification"><option value="">Verified and unverified</option><option value="verified">Verified only</option><option value="unverified">Unverified only</option></select>
</div>
<div id="count">Loading data...</div>
<div class="tablewrap">
<table>
<thead><tr>
<th>Jurisdiction</th><th>Rule</th><th>Status</th><th>Ads</th><th>Licence</th><th>Risk warning</th><th>Influencers</th><th>Incentives</th><th>Check</th>
</tr></thead>
<tbody id="rows"></tbody>
</table>
</div>
<p class="small">Y = the source states the condition. N = the source states it does not apply. unclear = not confirmed, which is not the same as "no". Source data: <a href="https://huggingface.co/datasets/BlockchainAppFactory-Data/crypto-advertising-rules-by-country">Hugging Face dataset</a> (CC BY 4.0).</p>
</main>
<footer>
<div class="wrap">
Data: <a href="https://doi.org/10.5281/zenodo.24506332">Crypto Advertising and Promotion Rules by Country (DOI 10.5281/zenodo.24506332)</a> · Maintained by <a href="https://www.blockchainappfactory.com/blog/crypto-advertising-rules-by-country/">Blockchain App Factory</a>
</div>
</footer>
<script>
(function () {
var REMOTE = "https://huggingface.co/datasets/BlockchainAppFactory-Data/crypto-advertising-rules-by-country/resolve/main/data.csv";
var LOCAL = "data.csv";
var LABEL = { in_force: "In force", adopted_not_in_force: "Adopted, not in force", proposed: "Proposed", repealed: "Repealed",
restricted: "Restricted", banned: "Banned", allowed: "Allowed", no_specific_rule: "No specific rule" };
var data = [];
var el = function (id) { return document.getElementById(id); };
function parseCSV(text) {
var rows = [], row = [], field = "", i = 0, q = false, ch;
text = text.replace(/^/, "");
for (; i < text.length; i++) {
ch = text[i];
if (q) {
if (ch === '"') { if (text[i + 1] === '"') { field += '"'; i++; } else { q = false; } }
else { field += ch; }
} else if (ch === '"') { q = true; }
else if (ch === ",") { row.push(field); field = ""; }
else if (ch === "\n" || ch === "\r") {
if (ch === "\r" && text[i + 1] === "\n") { i++; }
row.push(field); field = "";
if (row.length > 1 || row[0] !== "") { rows.push(row); }
row = [];
} else { field += ch; }
}
if (field !== "" || row.length) { row.push(field); rows.push(row); }
var head = rows.shift();
return rows.map(function (r) { var o = {}; head.forEach(function (h, k) { o[h] = r[k] === undefined ? "" : r[k]; }); return o; });
}
function esc(s) {
return String(s).replace(/[&<>"']/g, function (m) { return { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }[m]; });
}
function safeUrl(u) { return /^https:\/\//.test(u) ? u : "#"; }
function flag(v) { return '<td class="c' + (v === "Y" ? " y" : "") + '">' + esc(v) + "</td>"; }
function fillSelect(id, key) {
var vals = Array.from(new Set(data.map(function (r) { return r[key]; }))).sort();
var s = el(id);
vals.forEach(function (v) { var o = document.createElement("option"); o.value = v; o.textContent = LABEL[v] || v; s.appendChild(o); });
}
function draw() {
var t = el("q").value.toLowerCase().trim(), rg = el("region").value, ad = el("ads").value, vr = el("ver").value;
var out = [], n = 0;
data.forEach(function (r) {
if (rg && r.region !== rg) return;
if (ad && r.crypto_ads_status !== ad) return;
if (vr && r.verification_status !== vr) return;
if (t) {
var hay = [r.jurisdiction, r.iso_code, r.regulator, r.rule_name, r.summary].join(" ").toLowerCase();
if (hay.indexOf(t) < 0) return;
}
n++;
out.push("<tr>" +
'<td class="j">' + esc(r.jurisdiction) + '<div class="small">' + esc(r.region) + " · " + esc(r.record_id) + "</div></td>" +
"<td><a href=\"" + esc(safeUrl(r.source_url)) + "\" target=\"_blank\" rel=\"noopener\">" + esc(r.rule_name) + "</a>" +
'<div class="small">' + esc(r.regulator) + "</div>" +
"<details><summary>Summary and notes</summary><p>" + esc(r.summary) + "</p>" +
(r.notes ? '<p class="small">Notes: ' + esc(r.notes) + "</p>" : "") +
'<p class="small">Source: ' + esc(r.source_name) + ". Checked " + esc(r.last_checked) + ".</p></details></td>" +
'<td class="c">' + esc(LABEL[r.status] || r.status) + (r.effective_date ? '<div class="small">' + esc(r.effective_date) + "</div>" : "") + "</td>" +
'<td class="c' + (r.crypto_ads_status === "banned" ? " ban" : "") + '">' + esc(LABEL[r.crypto_ads_status] || r.crypto_ads_status) + "</td>" +
flag(r.authorisation_required) + flag(r.risk_warning_required) + flag(r.influencer_rules) + flag(r.incentive_restrictions) +
'<td class="c">' + esc(r.verification_status) + "</td></tr>");
});
el("rows").innerHTML = out.join("") || '<tr><td colspan="9" style="text-align:center;padding:16px">No rules match these filters.</td></tr>';
el("count").textContent = "Showing " + n + " of " + data.length + " rules";
}
function load(url) { return fetch(url).then(function (r) { if (!r.ok) throw new Error(r.status); return r.text(); }); }
load(REMOTE).catch(function () { return load(LOCAL); }).then(function (text) {
data = parseCSV(text);
fillSelect("region", "region");
fillSelect("ads", "crypto_ads_status");
["q", "region", "ads", "ver"].forEach(function (id) { el(id).addEventListener(id === "q" ? "input" : "change", draw); });
draw();
}).catch(function () {
el("count").textContent = "The data file could not be loaded. Download it from the Hugging Face dataset linked below.";
});
})();
</script>
</body>
</html>