Email blocking (spammer) - Post ID...

User 192109 Photo


Registered User
2 posts

Hello,

A quick question;

I have a particularly annoying and persistent spammer who keeps sending emails via my website (on a form built in Web Form Builder). I have tried to block their domain and IP via my webhosting but it is not working.

I use Web Form Builder (but not using S-Drive) which works really well for me. Is there a way to block them in the settings Web Form Builder software, say blocking everything from their domain, e.g: "*@annoyingspammer.com"?

Many thanks for your help!
User 2699991 Photo


Registered User
5,078 posts
Online Now

Are they real humans?
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://mawarputih.coffeecup.com/forms/contact-wayan/

A simple quick way to contact me
https://rsd-tutorialscom.coffeecup.com/ … l-details/
User 192109 Photo


Registered User
2 posts

Yes, I believe so as they are also completing the reCaptcha check.
User 2699991 Photo


Registered User
5,078 posts
Online Now

Donhinio wrote:
Yes, I believe so as they are also completing the reCaptcha check.

There are not so many things you can do about blocking real people especially if they are even a little bit savvy. Blocking ip address can be done with some js code but all it needs is for whoever is doing it to use one of those virtual private network thingies and there you are never the same IP address. You mentioned a domain name, but you couldn't block that because they wouldn't come to your site from their domain. However it might be possible to do something if they use something in the form like the same email address, but then once again all they would have to do is change the email address etc. You would probably spend more time changing the blocking parameters than just deleting the emails.
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://mawarputih.coffeecup.com/forms/contact-wayan/

A simple quick way to contact me
https://rsd-tutorialscom.coffeecup.com/ … l-details/
User 187934 Photo


Senior Advisor
20,239 posts

Paste the code below at the very top of your myformname.php.
Adjust the $_POST['email'] to the actual name of your email input used in your form.
Adjust the $blacklist array domains to the domains you want blocked.
Adjust the header location to the youraspammer.html page on your server.
if(isset($_POST['email'])){
$email = $_POST['email'];
$domain = substr(strrchr($email, "@"), 1);
$blacklist = array('gmail.com', 'mydomain.com');
if (in_array($domain, $blacklist)) {
$_SESSION['post'] = $_POST['post'];
header("Location: https://mydomain.com/youraspammer.html");
die();
}
}

On the youraspammer.html page paste this at the very top.
<?php
session_start();
?>

Then paste this at the very bottom
<?php
unset($_SESSION['post']);
?>

Working here. Try a gmail.com or a mydomain.com email address.
https://ericrohloff.com/coffeecup/ccfor … il-domain/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.