How to remove the Contact page safely
How to remove the Contact page safely
Recently I noticed a significant increase of spam messages through the Contact page. I'll try to change the antispam filter, but Just in case is it possible to remove the Contact page without messing up the whole blog?
Re: How to remove the Contact page safely
Rename in the Flatpress root dir the contact.php like contact.bak or use any other name, then Log in in your Blog and go to the static pages, there you will find a menu.txt Page, Edit this page and remove the contact link.
Re: How to remove the Contact page safely
Thanks laborix 
@eagleman, did that work for you?

@eagleman, did that work for you?
Helpful FlatPress links: Project blog
- FlatPress wiki
- FlatPress@Twitter
- FlatPress@Mastodon 
Stay up to date with our feeds: Forum RSS feed
- Project blog RSS feed 
Feel free to say Thank you: Donate
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Re: How to remove the Contact page safely
Absolutely yes, and if you look on the Wiki, I have added this little trick on the Contact page section (obviously in both languages, english and italian)
Re: How to remove the Contact page safely
Totally missed that one, sorry - thank you very much for contributing to the wiki!
I felt free to add a little text formatting - hope the added headline is correct Italian?
All the best,
Arvid
I felt free to add a little text formatting - hope the added headline is correct Italian?

All the best,
Arvid
Helpful FlatPress links: Project blog
- FlatPress wiki
- FlatPress@Twitter
- FlatPress@Mastodon 
Stay up to date with our feeds: Forum RSS feed
- Project blog RSS feed 
Feel free to say Thank you: Donate
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Re: How to remove the Contact page safely
Don't worry. It's a very good correction.
I have nothing to complain about it
I have nothing to complain about it

Re: How to remove the Contact page safely

Thanks for checking!
Helpful FlatPress links: Project blog
- FlatPress wiki
- FlatPress@Twitter
- FlatPress@Mastodon 
Stay up to date with our feeds: Forum RSS feed
- Project blog RSS feed 
Feel free to say Thank you: Donate
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Re: How to remove the Contact page safely
Hi!
If you are running Apache, another solution is to block access to contact.php by adding this to your .htaccess file.
This is how DokuWiki protects some of its files.
If you are running Apache, another solution is to block access to contact.php by adding this to your .htaccess file.
Code: Select all
<Files ~ "^([\._]ht|contact.php$)">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
</Files>
Re: How to remove the Contact page safely
I know I shouldn't hijack a page, but I am having the same problems with a significant increase in spam comments. Can the comment module be deleted and if so, how? I've looked at the possibility of not allowing url's in the comments but can't figure out how to do that. Thanks.
Re: How to remove the Contact page safely
Go to Comment center, click on Add a new policy,WineMan wrote: βFri Nov 17, 2023 3:45 pm I know I shouldn't hijack a page, but I am having the same problems with a significant increase in spam comments. Can the comment module be deleted and if so, how? I've looked at the possibility of not allowing url's in the comments but can't figure out how to do that. Thanks.
Apply to all entries, and select Block all comments from Behavoir section.
In this way you'll delete the comment section for all the entries on your blog
Who is online
Users browsing this forum: No registered users and 1 guest