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: 223
- 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
You are strong in PHP and Java Script? Then help us to improve FlatPress.
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
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.';
}
Re: How to remove the Contact page safely
Just a thought on that one: Please don't forget to add the snippet again after updating your FlatPress instance in the future.
Would fraenkiman's suggestion with the QuickSpamFilter plugin be the better way in terms of update safeness?
All the best,
Arvid
Would fraenkiman's suggestion with the QuickSpamFilter plugin be the better way in terms of update safeness?
All the best,
Arvid
Project blogโโ Docsโโ Twitterโโ Mastodonโโ Forum RSS feedโโ Project blog RSS feedโโ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Who is online
Users browsing this forum: No registered users and 34 guests