How to remove the Contact page safely

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
eagleman
Posts: 98
Joined: Sat Mar 02, 2019 12:10 pm

How to remove the Contact page safely

Post by eagleman » Sun Feb 06, 2022 8:44 pm

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?

laborix
Posts: 92
Joined: Sat Feb 16, 2019 3:51 pm

Re: How to remove the Contact page safely

Post by laborix » Mon Feb 07, 2022 7:12 pm

eagleman wrote: ↑Sun Feb 06, 2022 8:44 pm... is it possible to remove the Contact page without messing up the whole blog?
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.

User avatar
Arvid
FlatPress Coder
Posts: 443
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: How to remove the Contact page safely

Post by Arvid » Sun Mar 13, 2022 1:01 pm

Thanks laborix :)

@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 πŸ”₯

πŸ‡©πŸ‡ͺ FΓΌr meinen Arbeitgeber in Bochum habe ich eine Stelle zu besetzen: Junior-Systemadministrator πŸ‡©πŸ‡ͺ

eagleman
Posts: 98
Joined: Sat Mar 02, 2019 12:10 pm

Re: How to remove the Contact page safely

Post by eagleman » Sun Mar 13, 2022 1:08 pm

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)

User avatar
Arvid
FlatPress Coder
Posts: 443
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: How to remove the Contact page safely

Post by Arvid » Wed Mar 30, 2022 6:24 pm

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
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 πŸ”₯

πŸ‡©πŸ‡ͺ FΓΌr meinen Arbeitgeber in Bochum habe ich eine Stelle zu besetzen: Junior-Systemadministrator πŸ‡©πŸ‡ͺ

eagleman
Posts: 98
Joined: Sat Mar 02, 2019 12:10 pm

Re: How to remove the Contact page safely

Post by eagleman » Wed Mar 30, 2022 6:48 pm

Don't worry. It's a very good correction.
I have nothing to complain about it ;)

User avatar
Arvid
FlatPress Coder
Posts: 443
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: How to remove the Contact page safely

Post by Arvid » Sat Apr 02, 2022 11:31 am

:D

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 πŸ”₯

πŸ‡©πŸ‡ͺ FΓΌr meinen Arbeitgeber in Bochum habe ich eine Stelle zu besetzen: Junior-Systemadministrator πŸ‡©πŸ‡ͺ

bttr
Posts: 46
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: How to remove the Contact page safely

Post by bttr » Tue Apr 19, 2022 8:33 pm

Hi!
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>
This is how DokuWiki protects some of its files.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests