How to remove the Contact page safely
Re: How to remove the Contact page safely
Thank you so much eagleman for your help on this. I had not seen this option before and now that I have, I am going to try to have all comments approved before being displayed...hopefully that will slow down the spam. If that doesn't stop it, I can always delete it as you have described.
- fraenkiman
- Posts: 153
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: How to remove the Contact page safely
Hello WineMan,
The conversational variant is to simply activate the following option for the relevant posts: "Block comments: Do not allow comments for this post."
The number of forbidden words must be 1.
Otherwise, the plugins Accessible Antispam and the "Comment check with Akismet" in the Comment Center also do a very good job.
With best regards
Frank
The conversational variant is to simply activate the following option for the relevant posts: "Block comments: Do not allow comments for this post."
To block URLs/comments that contain URLs, you can use the QuickSpamFilter plugin. You can try adding the following three to the banned words:
Code: Select all
www
http
https
Otherwise, the plugins Accessible Antispam and the "Comment check with Akismet" in the Comment Center also do a very good job.
With best regards
Frank
My
Re: How to remove the Contact page safely
Thank you fraenkiman, I will try your QuickSpamFilter suggestion as well.
Re: How to remove the Contact page safely
With the help of a developer friend, this piece of code was added in comments.php file. In my case it was added beginning online 138
Seems to work if the spam commenter is there to add a URL.
Code: Select all
if (preg_match("~href|http|[^\s\.]{2,10}\.[^\s\.]{2,30}\.[^\s\.]{2,10}~i",$content)) { //URL found (href | http | xxx.yyy.zzz))
$errors ['content'] = 'URLs not allowed in comments - please remove it.';
}
Who is online
Users browsing this forum: No registered users and 1 guest