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

Plugin: Accessible Antispam #138

Closed
Fraenkiman opened this issue Aug 13, 2022 · 5 comments · Fixed by #299
Closed

Plugin: Accessible Antispam #138

Fraenkiman opened this issue Aug 13, 2022 · 5 comments · Fixed by #299
Labels
Milestone

Comments

@Fraenkiman
Copy link
Collaborator

Fraenkiman commented Aug 13, 2022

Hello, everyone.
add the solution of a mathematical problem (Accessible Antispam) to the contact form. (e.g. like leaving a comment).
There is currently no way to protect yourself from spam mails, as was possible with FlatPress 1.2.1.

With best regards
Frank.

@axelhahn
Copy link

axelhahn commented Aug 13, 2022

Hi Frank,
It is part of the distribution already. Maybe it was deactivated in the plugin section (admin.php?p=plugin - "Accessible Antispam")?!
Axel

@Fraenkiman
Copy link
Collaborator Author

Fraenkiman commented Aug 13, 2022

Hello, Axel.

Accessible Antispam is active in version 3.0. If you want to add a comment under a post, the mathematical task is also displayed. Not with contact.php. I imagine that this has not been possible since the contact form was revised.
I use fp-1.3dev master.
The template may be missing {comment_form} on line ~51 and the PHP code may need to be adjusted.

Best regards

@azett azett added this to the FlatPress 1.3 milestone Nov 20, 2022
@azett azett added the bug label Nov 20, 2022
@azett
Copy link
Member

azett commented Jan 3, 2023

Might be related to c2f64b1

@paragbagul111
Copy link

for prevent anti spam in contact feature you can capacha

Download Securimage:

Visit the Securimage website (https://www.phpcaptcha.org/) and download the latest version of the library.
Extract the downloaded archive.
Prepare your directory structure:

Create a directory in your project where you want to store the Securimage files, e.g., "captcha".
Copy the following files from the extracted Securimage archive into the "captcha" directory:
securimage.php
securimage_show.php
securimage_play.php (optional, for an audio CAPTCHA)
Update your PHP code:

In the PHP script that handles the form submission, you need to include the Securimage library and validate the CAPTCHA response. Here's an example:

check($_POST['captcha_code']) == false) { // CAPTCHA verification failed, handle the error accordingly // ... } else { // CAPTCHA verification successful, continue with form processing // ... } } ?>

Display the CAPTCHA in your contact form:

Add the following HTML code snippet inside your contact form where you want the CAPTCHA to appear:

CAPTCHA Image

Refresh CAPTCHA

Style the CAPTCHA if needed:

You can apply CSS styles to the CAPTCHA image and input field to match the design of your contact form.

@paragbagul111
Copy link

<img id="captcha" src="captcha/securimage_show.php" alt="CAPTCHA Image" /> <input type="text" name="captcha_code" size="10" maxlength="6" /> <a href="#" onclick="document.getElementById('captcha').src = 'captcha/securimage_show.php?' + Math.random(); return false">Refresh CAPTCHA</a>

@Fraenkiman Fraenkiman changed the title mathematical problem Plugin: Accessible Antispam Jan 11, 2024
Fraenkiman added a commit to Fraenkiman/flatpress that referenced this issue Jan 15, 2024
- The Accessible Antispam plugin now works again when the contact form is used.
@Fraenkiman Fraenkiman mentioned this issue Jan 15, 2024
Fraenkiman added a commit that referenced this issue Jan 15, 2024
- The Accessible Antispam plugin now works again when the contact form is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants