CSF Messenger with reCAPTCHA doesn't work with DirectAdmin. Any fix ideas?

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
Hello,
CSF Messenger with reCAPTCHA doesn't work with DA server. I tried Unblock CSF module with WHMCS, and it didn't work too.

Is it just me or everyone have same issue? It seems it's impossible to unblock IP's with recaptha or script. Because it cannot access to DA server.

EDIT:
After trying everything, I found out it was the perl issue.
You need to install some perl modules to make it work. Just run this command in ssh:
yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y

and it will be fixed after you restart csf+lfd.

Problem solved.
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Hello,

According to official docs: This service, currently only available in cPanel servers, utilises the existing Apache service to provide the message as well as RECAPTCHA unblocking. It is enabled through the MESSENGERV2 option. The server must be running Apache v2.4 and using cPanel's EasyApache v4.

https://download.configserver.com/csf/readme.txt
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
Hello,

According to official docs: This service, currently only available in cPanel servers, utilises the existing Apache service to provide the message as well as RECAPTCHA unblocking. It is enabled through the MESSENGERV2 option. The server must be running Apache v2.4 and using cPanel's EasyApache v4.

https://download.configserver.com/csf/readme.txt
Yes, but it's messenger v2.
We can able to use messenger v1 with directadmin servers.

cPanel only service is the messenger v2 version of it.
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
OK, I see. And what exactly does not work then?
Unblock button is not working. I tried 2 different modules.

1) CSF integrated Messenger V1 with recaptha option. When you click unblock after recaptha, nothing happens.
2) CSF Unblock module for WHMCS. It doesn't unblock IP. Debug shows module can only access login page and stops at there. That module claims that it used to work with DA.
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
And what makes you think it's not working? What error do you get?
It doesn't unblock IP that is in blocked in CSF. It fails.
When clients get blocked by CSF for anything, they were able to login our WHMCS and unblock their own IP's with just one click. Or alternatively, they see recaptcha page with CSF Messenger V1, and unblock themselves by clicking unblock button.

But it does not unblock anymore after switching to DA from cPanel. IP remains blocked. That's the error. :)
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
I see. If the IP has been blocked by CSF/LFD then it should be possible to unblock it with calls to CSF/LFD including CSF Messenger. If an IP has been blocked by DirectAdmin then calls to CSF/LFD might not help to unblock such an IP.

So, make sure an IP has been blocked by CSF/LFD, not by directadmin, then try to unblock it.
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
I see. If the IP has been blocked by CSF/LFD then it should be possible to unblock it with calls to CSF/LFD including CSF Messenger. If an IP has been blocked by DirectAdmin then calls to CSF/LFD might not help to unblock such an IP.

So, make sure an IP has been blocked by CSF/LFD, not by directadmin, then try to unblock it.
Yes, I'm sure. I also tried to add it manually to CSF. And it shows in CSF deny list. It's not blocked by directadmin.
 

DanielP

Verified User
Joined
Jun 28, 2019
Messages
82
It works for me pls check settings carefully


After recaptcha I got

Passed human test. Please wait a few seconds and your IP address should be unblocked.

I waited a few seconds and it worked

I use csf installed with zEitEr script for BLM integration
https://help.poralix.com/articles/how-to-block-ips-with-csf-directadmin-bfm


@chonk - So what could be wrong (unblock permanent blocks is unchecked by default ) could you check that
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
It works for me pls check settings carefully


After recaptcha I got

Passed human test. Please wait a few seconds and your IP address should be unblocked.

I waited a few seconds and it worked

I use csf installed with zEitEr script for BLM integration
https://help.poralix.com/articles/how-to-block-ips-with-csf-directadmin-bfm


@chonk - So what could be wrong (unblock permanent blocks is unchecked by default ) could you check that
I just installed that script you mentioned. It didn't work.
What do you mean exactly by "unblock permanent blocks"?
Can you also share with me which repatcha version you using?
 

DanielP

Verified User
Joined
Jun 28, 2019
Messages
82
I just installed that script you mentioned. It didn't work.
What do you mean exactly by "unblock permanent blocks"?
Can you also share with me which repatcha version you using?
recaptcha v2

at the messanger in CSF there is option on top to remove temporary MESSENGER_TEMP block and to remove permanent blocks MESSENGER_PERM

if you add your test IP to permanent block and do not enabled permanent removal it may not work

I do not have other ideas
 

chonk

Verified User
Joined
Jan 3, 2017
Messages
19
Good news for those who have same problem with me. I have fixed the problem.

You need to install some perl modules to make it work. Just run this command in ssh:

yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y

and it will be fixed after you restart csf+lfd.
 
Top