Skip to content

Commit 1c4ce98

Browse files
committed
Remove reCAPTCHA integration from comment form and update privacy policy references
1 parent 1ce6420 commit 1c4ce98

3 files changed

Lines changed: 1 addition & 18 deletions

File tree

_includes/comment_form.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
<label><input id="privacy_agreement" type="checkbox" required> I have read and agree to the <a href="/privacy" target="_blank">Privacy Policy</a> *</label>
2626
<br/>
2727

28-
<!-- reCAPTCHA: keep only the site key on the client -->
29-
<div class="g-recaptcha" data-sitekey="{{ site.commenting.recaptcha.sitekey }}"></div>
30-
3128
<div class="warning-box" id="warning-box"></div>
3229
<button type="submit" class="submit-button">Submit</button>
3330
</div>
@@ -76,14 +73,6 @@
7673
warningBox.textContent = 'Please agree to the Privacy Policy.';
7774
warningBox.style.display = 'block';
7875
return;
79-
}
80-
81-
const captchaResponse = grecaptcha.getResponse();
82-
83-
if (!captchaResponse) {
84-
warningBox.textContent = 'Please complete the reCAPTCHA.';
85-
warningBox.style.display = 'block';
86-
return;
8776
} else {
8877
warningBox.style.display = 'none';
8978
}
@@ -98,7 +87,6 @@
9887
message: $('#message').val().trim(),
9988
url: $('#url').val().trim() || '',
10089
avatarUrl: avatarUrl,
101-
gRecaptchaResponse: captchaResponse,
10290
};
10391

10492
// Basic front-end validation
@@ -136,8 +124,6 @@
136124
window.location.href = '/pages/sorry';
137125
},
138126
complete: function () {
139-
// Reset captcha so user can retry if needed
140-
grecaptcha.reset();
141127
$submitButton.prop('disabled', false).text('Submit');
142128
}
143129
});

_includes/head.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
<link rel="stylesheet" href="/css/site.css" type="text/css">
5656
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
5757
<script src="/js/slash.js" async></script>
58-
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
5958
<!-- Google Analytics loaded via cookie consent banner -->
6059
{% if site.google_analytics_tracking_id %}
6160
{% include cookie_consent.html %}

privacy/index.markdown

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This site uses Google Analytics to understand how visitors interact with the con
2626
You can opt out of Google Analytics by:
2727
- Declining cookies when you first visit (via the cookie banner)
2828

29-
#### Comments
29+
#### Commenting
3030

3131
If you post a comment on this blog:
3232
- Only your **display name** and **message** are required
@@ -39,7 +39,6 @@ If you post a comment on this blog:
3939

4040
This site uses cookies for:
4141
- **Google Analytics:** Tracking site usage (requires your consent)
42-
- **reCAPTCHA:** Spam protection on comment forms (Google service)
4342
- **Local Storage:** Remembering your name and URL if you use "Remember Me" on comments
4443

4544
### What I Don't Do
@@ -56,7 +55,6 @@ This site uses cookies for:
5655
This site uses these third-party services that have their own privacy policies:
5756

5857
- **Google Analytics** - [Privacy Policy](https://policies.google.com/privacy)
59-
- **Google reCAPTCHA** - [Privacy Policy](https://policies.google.com/privacy)
6058
- **Robohash** (avatar generation) - [https://robohash.org](https://robohash.org)
6159
- **GitHub Pages** (hosting) - [Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement)
6260

0 commit comments

Comments
 (0)