How to remove the Contact page safely

This is the right place to report general bugs, make suggestions or ask for help.
eagleman
Posts: 175
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: 118
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: 558
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?

eagleman
Posts: 175
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: 558
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

eagleman
Posts: 175
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 ;)


bttr
Posts: 47
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.

User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: How to remove the Contact page safely

Post by WineMan » 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.

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

Re: How to remove the Contact page safely

Post by eagleman » Fri Nov 17, 2023 7:54 pm

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.
Go to Comment center, click on Add a new policy,
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

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests