Compare commits
No commits in common. "af4f4e67adf96d62ca0ea3692242667d91fb795d" and "f468bdd8bf693938932f6d6a727d784a310e59f7" have entirely different histories.
af4f4e67ad
...
f468bdd8bf
7 changed files with 35 additions and 193 deletions
|
|
@ -30,35 +30,21 @@ if (!empty($_POST['website'])) {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delai minimum de remplissage : un humain met plus de quelques secondes a ecrire un message.
|
|
||||||
// Reponse neutre pour ne pas indiquer au bot qu'il a ete detecte.
|
|
||||||
$formRenderedAt = (int) ($_SESSION['contact_form_rendered_at'] ?? 0);
|
|
||||||
if ($formRenderedAt === 0 || (time() - $formRenderedAt) < 4) {
|
|
||||||
error_log('[Contact] Envoi trop rapide ou formulaire non affiche, message ignore.');
|
|
||||||
Security::jsonResponse([
|
|
||||||
'success' => true,
|
|
||||||
'message' => 'Message envoye avec succes.',
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Google reCAPTCHA v3 (si configure) : filtre les bots via un score anti-spam.
|
// Google reCAPTCHA v3 (si configure) : filtre les bots via un score anti-spam.
|
||||||
if (RECAPTCHA_ENABLED) {
|
if (RECAPTCHA_ENABLED) {
|
||||||
$requestHost = preg_replace('/:\d+$/', '', (string) ($_SERVER['HTTP_HOST'] ?? '')) ?? '';
|
|
||||||
|
|
||||||
$recaptchaOk = Security::verifyRecaptcha(
|
$recaptchaOk = Security::verifyRecaptcha(
|
||||||
(string) ($_POST['recaptcha_token'] ?? ''),
|
(string) ($_POST['recaptcha_token'] ?? ''),
|
||||||
RECAPTCHA_SECRET_KEY,
|
RECAPTCHA_SECRET_KEY,
|
||||||
Security::clientIp(),
|
Security::clientIp(),
|
||||||
RECAPTCHA_MIN_SCORE,
|
RECAPTCHA_MIN_SCORE,
|
||||||
'contact',
|
'contact'
|
||||||
$requestHost
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$recaptchaOk) {
|
if (!$recaptchaOk) {
|
||||||
http_response_code(422);
|
http_response_code(422);
|
||||||
Security::jsonResponse([
|
Security::jsonResponse([
|
||||||
'success' => false,
|
'success' => false,
|
||||||
'message' => 'Verification anti-robot echouee. Reessayez, ou ecrivez-moi directement a contact@tony-averty.dev.',
|
'message' => 'Verification anti-robot echouee. Merci de reessayer.',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -138,39 +124,12 @@ if (mb_strlen($message) < 10 || mb_strlen($message) > 5000) {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filtre anti-spam : les bots injectent souvent plusieurs liens, du BBCode, ou ecrivent
|
// Filtre anti-spam : les bots injectent souvent plusieurs liens ou du BBCode.
|
||||||
// dans des alphabets sans rapport avec une clientele francophone.
|
|
||||||
$haystack = mb_strtolower($name . ' ' . $subject . ' ' . $message, 'UTF-8');
|
$haystack = mb_strtolower($name . ' ' . $subject . ' ' . $message, 'UTF-8');
|
||||||
$linkCount = preg_match_all('~https?://|www\.|\[url|\[link|</?a\b~i', $haystack);
|
$linkCount = preg_match_all('~https?://|www\.|\[url|\[link|</?a\b~i', $haystack);
|
||||||
$hasLinkInName = (bool) preg_match('~https?://|www\.|\.(com|net|ru|xyz|top|online)\b~i', $name);
|
|
||||||
$hasForeignScript = (bool) preg_match('/[\p{Cyrillic}\p{Han}\p{Hiragana}\p{Katakana}\p{Hangul}\p{Thai}]/u', $haystack);
|
|
||||||
|
|
||||||
// Signature des campagnes de spam observees : liens vers des hebergeurs de pages jetables
|
if ($linkCount >= 4 || preg_match('~\[url|\[link|\[/url\]|xn--~i', $haystack)) {
|
||||||
// ou raccourcisseurs, gros blocs de lignes vides, identifiant aleatoire en fin de message
|
|
||||||
// ("REFERENCE: a3aw0j4e8v5j0m3k..."), promesses de gains en dollars ou crypto.
|
|
||||||
$hasSpamHost = (bool) preg_match('~\b(telegra\.ph|t\.me|bit\.ly|tinyurl\.com|cutt\.ly|is\.gd|rebrand\.ly|shorturl\.at|goo\.su|clck\.ru)\b~i', $haystack);
|
|
||||||
$hasBlankPadding = (bool) preg_match('/(?:\r?\n[ \t]*){6,}/', $message);
|
|
||||||
$hasRandomToken = (bool) preg_match('/\b(?=[a-z0-9]*\d)(?=[a-z0-9]*[a-z])[a-z0-9]{40,}\b/i', $haystack);
|
|
||||||
$hasMoneyBait = (bool) preg_match('~\$\s?\d[\d,.\s]*(?:per|a|/)\s?day|\$>\$>|\$\s?\d{1,3}(?:,\d{3}){2,}|\b(?:crypto(?:currency)?|bitcoin|btc|usdt|forex|casino|airdrop|jackpot|lottery|hackathon prizes?)\b~i', $haystack);
|
|
||||||
// Campagne "Robertrow" : sujet anglais genere par gabarit ("Hello, writing about your price")
|
|
||||||
// avec des blocs d'espaces, message d'une ligne dans une langue tiree au hasard.
|
|
||||||
$hasTemplateGaps = (bool) preg_match('/\S {3,}\S/', $subject . "\n" . $name);
|
|
||||||
$hasPriceInquiryBot = (bool) preg_match('~\b(?:write|wrote|writing)\b.{0,30}\bprices?\b~i', $subject);
|
|
||||||
|
|
||||||
if (
|
|
||||||
$linkCount >= 3
|
|
||||||
|| $hasLinkInName
|
|
||||||
|| $hasForeignScript
|
|
||||||
|| $hasSpamHost
|
|
||||||
|| $hasBlankPadding
|
|
||||||
|| $hasRandomToken
|
|
||||||
|| $hasMoneyBait
|
|
||||||
|| $hasTemplateGaps
|
|
||||||
|| $hasPriceInquiryBot
|
|
||||||
|| preg_match('~\[url|\[link|\[/url\]|xn--~i', $haystack)
|
|
||||||
) {
|
|
||||||
// On enregistre la tentative (rate limit) mais on ne notifie pas : reponse neutre.
|
// On enregistre la tentative (rate limit) mais on ne notifie pas : reponse neutre.
|
||||||
error_log('[Contact] Message ignore par le filtre anti-spam (sujet : ' . mb_substr($subject, 0, 80) . ')');
|
|
||||||
Security::recordAttempt($db, 'contact', $ip);
|
Security::recordAttempt($db, 'contact', $ip);
|
||||||
Security::jsonResponse([
|
Security::jsonResponse([
|
||||||
'success' => true,
|
'success' => true,
|
||||||
|
|
@ -218,14 +177,12 @@ try {
|
||||||
$cleanEmail
|
$cleanEmail
|
||||||
);
|
);
|
||||||
|
|
||||||
// L'accuse de reception ne reprend aucun texte saisi par l'expediteur : sinon un bot
|
|
||||||
// peut mettre l'adresse d'une victime et utiliser ce formulaire pour lui envoyer du spam.
|
|
||||||
$confirmMailer = new Mailer();
|
$confirmMailer = new Mailer();
|
||||||
$confirmMailer->sendHtml(
|
$confirmMailer->sendHtml(
|
||||||
$cleanEmail,
|
$cleanEmail,
|
||||||
'Votre message a bien ete recu - Tony AVERTY',
|
'Votre message a bien ete recu - Tony AVERTY',
|
||||||
buildClientConfirmationHtml(),
|
buildClientConfirmationHtml($name, $subject, $message),
|
||||||
buildClientConfirmationText(),
|
buildClientConfirmationText($name, $subject, $message),
|
||||||
SMTP_FROM_EMAIL
|
SMTP_FROM_EMAIL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -313,8 +270,12 @@ function buildAdminNotificationText(string $name, string $email, string $subject
|
||||||
return implode("\n", $lines);
|
return implode("\n", $lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildClientConfirmationHtml(): string
|
function buildClientConfirmationHtml(string $name, string $subject, string $message): string
|
||||||
{
|
{
|
||||||
|
$safeName = Security::e($name);
|
||||||
|
$safeSubject = Security::e($subject !== '' ? $subject : 'votre message');
|
||||||
|
$safeMessage = nl2br(Security::e($message));
|
||||||
|
|
||||||
return <<<HTML
|
return <<<HTML
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
|
@ -332,8 +293,12 @@ function buildClientConfirmationHtml(): string
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding:24px 28px;color:#111827;font-size:14px;line-height:1.7;">
|
<td style="padding:24px 28px;color:#111827;font-size:14px;line-height:1.7;">
|
||||||
<p style="margin:0 0 14px;">Bonjour,</p>
|
<p style="margin:0 0 14px;">Bonjour {$safeName},</p>
|
||||||
<p style="margin:0 0 14px;">Merci pour votre message. Il a bien ete recu et je vous repondrai sous 24 heures.</p>
|
<p style="margin:0 0 14px;">Merci pour votre message. Il a bien ete recu et je vous repondrai sous 24 heures.</p>
|
||||||
|
<div style="margin-top:18px;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;">
|
||||||
|
<p style="margin:0 0 10px;"><strong>Sujet :</strong> {$safeSubject}</p>
|
||||||
|
<div>{$safeMessage}</div>
|
||||||
|
</div>
|
||||||
<p style="margin:18px 0 0;color:#6b7280;font-size:13px;">Si vous n'etes pas a l'origine de cette demande, ignorez simplement cet email.</p>
|
<p style="margin:18px 0 0;color:#6b7280;font-size:13px;">Si vous n'etes pas a l'origine de cette demande, ignorez simplement cet email.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -346,14 +311,15 @@ function buildClientConfirmationHtml(): string
|
||||||
HTML;
|
HTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildClientConfirmationText(): string
|
function buildClientConfirmationText(string $name, string $subject, string $message): string
|
||||||
{
|
{
|
||||||
$lines = [
|
$lines = [
|
||||||
'Bonjour,',
|
"Bonjour {$name},",
|
||||||
'',
|
'',
|
||||||
"Merci pour votre message. Il a bien ete recu et je vous repondrai sous 24 heures.",
|
"Merci pour votre message. Il a bien ete recu et je vous repondrai sous 24 heures.",
|
||||||
'',
|
'',
|
||||||
"Si vous n'etes pas a l'origine de cette demande, ignorez simplement cet email.",
|
'Sujet : ' . ($subject !== '' ? $subject : '(non renseigne)'),
|
||||||
|
$message,
|
||||||
'',
|
'',
|
||||||
'Tony AVERTY - tony-averty.dev',
|
'Tony AVERTY - tony-averty.dev',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1253,40 +1253,6 @@ a:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pagination "Voir plus" : active uniquement avec JS, sinon tous les projets sont visibles */
|
|
||||||
.js .project-card--extra:not(.is-revealed) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-js .projects__more {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-card:focus {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-card:focus-visible {
|
|
||||||
outline: 2px solid var(--accent);
|
|
||||||
outline-offset: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.projects__more {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
margin-top: var(--space-xl);
|
|
||||||
}
|
|
||||||
|
|
||||||
.projects__more .btn,
|
|
||||||
.projects__more .btn:hover {
|
|
||||||
border-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.projects__more-count {
|
|
||||||
opacity: 0.7;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-card {
|
.project-card {
|
||||||
background-color: var(--bg-card);
|
background-color: var(--bg-card);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
|
|
@ -2175,8 +2141,7 @@ a:hover {
|
||||||
REVEAL ANIMATIONS
|
REVEAL ANIMATIONS
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
||||||
/* Masquage initial seulement si JS est actif (sinon le contenu resterait invisible) */
|
.reveal {
|
||||||
.js .reveal {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(30px);
|
transform: translateY(30px);
|
||||||
transition: opacity 0.6s var(--ease-out),
|
transition: opacity 0.6s var(--ease-out),
|
||||||
|
|
|
||||||
|
|
@ -149,38 +149,6 @@ var lerpCurrent = 0;
|
||||||
navProjectsLink.parentElement.classList.add('nav-projects-hidden');
|
navProjectsLink.parentElement.classList.add('nav-projects-hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================
|
|
||||||
PROJECTS: "VOIR PLUS" (3 PAR 3)
|
|
||||||
============================================ */
|
|
||||||
|
|
||||||
const projectsMoreBtn = document.getElementById('projectsMore');
|
|
||||||
|
|
||||||
if (projectsMoreBtn) {
|
|
||||||
const projectsStep = parseInt(projectsMoreBtn.dataset.step, 10) || 3;
|
|
||||||
const projectsCount = projectsMoreBtn.querySelector('.projects__more-count');
|
|
||||||
|
|
||||||
projectsMoreBtn.addEventListener('click', function () {
|
|
||||||
const hiddenCards = document.querySelectorAll('#projects-grid .project-card--extra:not(.is-revealed)');
|
|
||||||
const nextCards = Array.prototype.slice.call(hiddenCards, 0, projectsStep);
|
|
||||||
const remaining = hiddenCards.length - nextCards.length;
|
|
||||||
|
|
||||||
nextCards.forEach(function (card) {
|
|
||||||
card.classList.add('is-revealed');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Focus sur le premier projet révélé (clavier / lecteurs d'écran)
|
|
||||||
if (nextCards.length) {
|
|
||||||
nextCards[0].focus({ preventScroll: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
if (remaining <= 0) {
|
|
||||||
projectsMoreBtn.parentElement.remove();
|
|
||||||
} else if (projectsCount) {
|
|
||||||
projectsCount.textContent = '(' + remaining + ' restant' + (remaining > 1 ? 's' : '') + ')';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
ACTIVE NAV LINK ON SCROLL
|
ACTIVE NAV LINK ON SCROLL
|
||||||
============================================ */
|
============================================ */
|
||||||
|
|
|
||||||
|
|
@ -367,17 +367,14 @@ class Security
|
||||||
* - secret vide => reCAPTCHA non configure, on ne bloque pas (true).
|
* - secret vide => reCAPTCHA non configure, on ne bloque pas (true).
|
||||||
* - reseau HS => on ne bloque pas les vrais visiteurs (true), les autres
|
* - reseau HS => on ne bloque pas les vrais visiteurs (true), les autres
|
||||||
* protections (honeypot, captcha maths, rate limit) restent actives.
|
* protections (honeypot, captcha maths, rate limit) restent actives.
|
||||||
* - token vide / score absent ou trop bas / mauvaise action / mauvais domaine => bloque (false).
|
* - token vide / score trop bas / mauvaise action => bloque (false).
|
||||||
*
|
|
||||||
* Chaque refus est journalise (error_log) avec son motif et le score, pour ajuster le seuil.
|
|
||||||
*/
|
*/
|
||||||
public static function verifyRecaptcha(
|
public static function verifyRecaptcha(
|
||||||
string $token,
|
string $token,
|
||||||
string $secret,
|
string $secret,
|
||||||
string $ip,
|
string $ip,
|
||||||
float $minScore = 0.5,
|
float $minScore = 0.5,
|
||||||
string $expectedAction = '',
|
string $expectedAction = ''
|
||||||
string $expectedHostname = ''
|
|
||||||
): bool {
|
): bool {
|
||||||
if (trim($secret) === '') {
|
if (trim($secret) === '') {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -442,41 +439,16 @@ class Security
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$score = isset($data['score']) ? (float) $data['score'] : null;
|
|
||||||
$reject = static function (string $reason) use ($score, $data): bool {
|
|
||||||
error_log(sprintf(
|
|
||||||
'[Security] reCAPTCHA refuse : %s (score=%s, action=%s, host=%s, erreurs=%s)',
|
|
||||||
$reason,
|
|
||||||
$score === null ? 'n/a' : (string) $score,
|
|
||||||
(string) ($data['action'] ?? 'n/a'),
|
|
||||||
(string) ($data['hostname'] ?? 'n/a'),
|
|
||||||
implode(',', (array) ($data['error-codes'] ?? []))
|
|
||||||
));
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (empty($data['success'])) {
|
if (empty($data['success'])) {
|
||||||
return $reject('token invalide ou expire');
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Une cle v3 renvoie toujours un score : son absence signale une cle v2 ou un token detourne.
|
if (isset($data['score']) && (float) $data['score'] < $minScore) {
|
||||||
if ($score === null) {
|
return false;
|
||||||
return $reject('score absent');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($score < $minScore) {
|
if ($expectedAction !== '' && isset($data['action']) && $data['action'] !== $expectedAction) {
|
||||||
return $reject('score trop bas');
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
if ($expectedAction !== '' && ($data['action'] ?? '') !== $expectedAction) {
|
|
||||||
return $reject('action inattendue');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($expectedHostname !== '') {
|
|
||||||
$normalize = static fn (string $host): string => preg_replace('/^www\./', '', strtolower($host)) ?? '';
|
|
||||||
if ($normalize((string) ($data['hostname'] ?? '')) !== $normalize($expectedHostname)) {
|
|
||||||
return $reject('domaine inattendu');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr" data-theme="light" class="no-js">
|
<html lang="fr" data-theme="light">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<script nonce="<?= Security::cspNonce() ?>">document.documentElement.classList.replace('no-js', 'js');</script>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="Tony AVERTY, développeur web freelance et fondateur de CodeBzh. Création de sites sur mesure, refonte, back-end et UI design. Code propre, livraison rigoureuse, réponse sous 24h.">
|
<meta name="description" content="Tony AVERTY, développeur web freelance et fondateur de CodeBzh. Création de sites sur mesure, refonte, back-end et UI design. Code propre, livraison rigoureuse, réponse sous 24h.">
|
||||||
<meta name="author" content="Tony AVERTY">
|
<meta name="author" content="Tony AVERTY">
|
||||||
|
|
|
||||||
23
index.php
23
index.php
|
|
@ -20,9 +20,6 @@ $captchaA = random_int(2, 9);
|
||||||
$captchaB = random_int(1, 6);
|
$captchaB = random_int(1, 6);
|
||||||
$_SESSION['captcha_answer'] = $captchaA + $captchaB;
|
$_SESSION['captcha_answer'] = $captchaA + $captchaB;
|
||||||
$captchaQuestion = "{$captchaA} + {$captchaB} = ?";
|
$captchaQuestion = "{$captchaA} + {$captchaB} = ?";
|
||||||
|
|
||||||
// Horodatage d'affichage du formulaire (anti-bot : envoi trop rapide refusé)
|
|
||||||
$_SESSION['contact_form_rendered_at'] = time();
|
|
||||||
?>
|
?>
|
||||||
<?php require_once __DIR__ . '/includes/header.php'; ?>
|
<?php require_once __DIR__ . '/includes/header.php'; ?>
|
||||||
|
|
||||||
|
|
@ -347,16 +344,12 @@ $_SESSION['contact_form_rendered_at'] = time();
|
||||||
<h2 id="projects-title" class="section__title">Ce que j'ai construit</h2>
|
<h2 id="projects-title" class="section__title">Ce que j'ai construit</h2>
|
||||||
<p class="section__intro">Chaque projet présenté ici a été conçu et développé entièrement par mes soins — sans thème pré-acheté, sans constructeur de page. Du code écrit sur mesure, pour un résultat solide et durable.</p>
|
<p class="section__intro">Chaque projet présenté ici a été conçu et développé entièrement par mes soins — sans thème pré-acheté, sans constructeur de page. Du code écrit sur mesure, pour un résultat solide et durable.</p>
|
||||||
|
|
||||||
<?php
|
<div class="projects__grid">
|
||||||
$projectsPerStep = 3;
|
<?php foreach ($projects as $project):
|
||||||
$projectsTotal = count($projects);
|
|
||||||
?>
|
|
||||||
<div class="projects__grid" id="projects-grid">
|
|
||||||
<?php foreach ($projects as $index => $project):
|
|
||||||
$badge = formatBadge($project['badge']);
|
$badge = formatBadge($project['badge']);
|
||||||
$techs = parseTechnologies($project['technologies']);
|
$techs = parseTechnologies($project['technologies']);
|
||||||
?>
|
?>
|
||||||
<article class="project-card reveal<?= $index >= $projectsPerStep ? ' project-card--extra' : '' ?>" tabindex="-1" aria-label="<?= htmlspecialchars($project['title'], ENT_QUOTES, 'UTF-8') ?>">
|
<article class="project-card reveal" aria-label="<?= htmlspecialchars($project['title'], ENT_QUOTES, 'UTF-8') ?>">
|
||||||
<?php if (!empty($project['image'])): ?>
|
<?php if (!empty($project['image'])): ?>
|
||||||
<div class="project-card__image">
|
<div class="project-card__image">
|
||||||
<img src="assets/img/projects/<?= htmlspecialchars($project['image'], ENT_QUOTES, 'UTF-8') ?>"
|
<img src="assets/img/projects/<?= htmlspecialchars($project['image'], ENT_QUOTES, 'UTF-8') ?>"
|
||||||
|
|
@ -390,16 +383,6 @@ $_SESSION['contact_form_rendered_at'] = time();
|
||||||
</article>
|
</article>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($projectsTotal > $projectsPerStep): ?>
|
|
||||||
<div class="projects__more">
|
|
||||||
<button type="button" class="btn btn--outline btn--lg" id="projectsMore"
|
|
||||||
aria-controls="projects-grid" data-step="<?= $projectsPerStep ?>">
|
|
||||||
Voir plus de projets
|
|
||||||
<span class="projects__more-count">(<?= $projectsTotal - $projectsPerStep ?> restant<?= $projectsTotal - $projectsPerStep > 1 ? 's' : '' ?>)</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
17
legal.php
17
legal.php
|
|
@ -328,19 +328,9 @@ Security::bootstrap();
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="legal-highlight">
|
<div class="legal-highlight">
|
||||||
<p>Les analytics sont 100 % auto-hébergés sur le VPS d'ELYPSECLOUD (France). Aucune donnée de mesure d'audience n'est transmise à des tiers (Google, Meta, etc.). L'adresse IP n'est jamais stockée en clair — elle est hachée avant tout enregistrement.</p>
|
<p>Les analytics sont 100 % auto-hébergés sur le VPS d'ELYPSECLOUD (France). Aucune donnée n'est transmise à des tiers (Google, Meta, etc.). L'adresse IP n'est jamais stockée en clair — elle est hachée avant tout enregistrement.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Protection anti-spam du formulaire (Google reCAPTCHA)</h3>
|
|
||||||
<p>Pour bloquer les envois automatisés, la page d'accueil, qui contient le formulaire de contact, utilise le service <strong>reCAPTCHA v3</strong> de Google Ireland Limited. Ce service est invisible : il analyse le comportement de navigation sur la page (adresse IP, informations sur le navigateur, mouvements et interactions) afin d'estimer si le formulaire est rempli par un humain ou par un robot.</p>
|
|
||||||
<ul>
|
|
||||||
<li><strong>Finalité</strong> — sécuriser le formulaire de contact contre le spam</li>
|
|
||||||
<li><strong>Base légale</strong> — intérêt légitime (art. 6.1.f RGPD) : protéger le site et sa boîte de réception</li>
|
|
||||||
<li><strong>Destinataire</strong> — Google, qui peut transférer ces données hors de l'Union européenne (États-Unis), dans le cadre du Data Privacy Framework UE–États-Unis</li>
|
|
||||||
<li><strong>Portée</strong> — reCAPTCHA n'est chargé que sur la page d'accueil ; les autres pages du site n'y font pas appel</li>
|
|
||||||
</ul>
|
|
||||||
<p>Le traitement réalisé par Google est régi par sa <a href="https://policies.google.com/privacy" target="_blank" rel="noopener noreferrer" style="color:var(--accent)">politique de confidentialité</a> et ses <a href="https://policies.google.com/terms" target="_blank" rel="noopener noreferrer" style="color:var(--accent)">conditions d'utilisation</a>. Si vous ne souhaitez pas que ces données soient transmises à Google, vous pouvez me contacter directement par email à <a href="mailto:contact@tony-averty.dev" style="color:var(--accent)">contact@tony-averty.dev</a>.</p>
|
|
||||||
|
|
||||||
<h3>Vos droits (RGPD art. 15 à 22)</h3>
|
<h3>Vos droits (RGPD art. 15 à 22)</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Droit d'accès</strong> — obtenir une copie de vos données</li>
|
<li><strong>Droit d'accès</strong> — obtenir une copie de vos données</li>
|
||||||
|
|
@ -428,11 +418,10 @@ Security::bootstrap();
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>Cookies tiers</h3>
|
<h3>Cookies tiers</h3>
|
||||||
<p>Aucun outil de tracking ou de publicité externe (Google Analytics, Meta Pixel, Hotjar, etc.) n'est utilisé. Les polices d'écriture sont auto-hébergées sur le VPS — aucune requête n'est envoyée vers Google Fonts ou un CDN externe.</p>
|
<p>Ce site ne dépose <strong>aucun cookie tiers</strong>. Aucun outil de tracking externe (Google Analytics, Meta Pixel, Hotjar, etc.) n'est utilisé. Les polices d'écriture sont auto-hébergées sur le VPS — aucune requête n'est envoyée vers Google Fonts ou un CDN externe.</p>
|
||||||
<p>Seule exception : sur la page d'accueil, le service anti-spam <strong>Google reCAPTCHA</strong> peut déposer ou lire un cookie technique (<code>_GRECAPTCHA</code>) et utiliser le stockage local du navigateur, dans le seul but de distinguer un visiteur humain d'un robot et de protéger le formulaire de contact (voir la section « Protection anti-spam du formulaire » ci-dessus).</p>
|
|
||||||
|
|
||||||
<h3>Pas de bandeau cookies</h3>
|
<h3>Pas de bandeau cookies</h3>
|
||||||
<p>Ce site n'utilise aucun cookie de mesure d'audience, de publicité ou de réseau social. Les seuls traceurs présents servent au fonctionnement et à la sécurité du formulaire de contact (session, protection CSRF et anti-spam). C'est pourquoi aucun bandeau de consentement n'est affiché (recommandations CNIL, délibération n°2020-091).</p>
|
<p>Conformément aux recommandations de la CNIL (délibération n°2020-091), un bandeau de consentement aux cookies n'est pas requis lorsque les seuls cookies présents sont strictement nécessaires au service. C'est le cas de ce site.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue