Page 1 of 2

Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 04 Jan 2019, 08:53
by flexjoly
Hello,

We are new to this very nice cleantalk service. I am implementing the api in our own cms/framework. It works nicely, until this morning. It give an error in the comment after isAllowUser() or isAllowMessage():

Code: Select all

Antispam disabled. Check access key in CleanTalk plugin/module options.
But our hosting-package is valid until 26 jan.
I have also sent an support request. But also asking here, for: how can we do what it says: "Check access key in CleanTalk plugin/module options." In our dashboard I can't find our access-key anywhere. Only in the mail we have it.

Can someone please help us out
Thanks in advance!
flexJoly

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 04 Jan 2019, 08:55
by SergeM
Hello.

Thank you for your request.

We have replied to you in the Ticket #10129:
https://cleantalk.org/my/support

Best regards.

Re: Error: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 04 Jan 2019, 09:46
by flexjoly
Hi,

Thank you for your fast reply! I will respond here, so maybe it helps others too.

We use the plugin with composer.

Our php-code is like:

Code: Select all

use lib\Cleantalk;
use lib\CleantalkRequest;
use lib\CleantalkResponse;

$this->oRequest = new CleantalkRequest();
		
$this->oRequest->auth_key = 'xxxxx';
$this->oRequest->agent = 'php-api';
$this->oRequest->js_on = 1;
$this->oRequest->allow_links = 1;

// the message to test is like:
$this->oRequest->sender_email  = 'xxx';
$this->oRequest->sender_nickname = 'xxx';
$this->oRequest->sender_ip  = 'xxx';
$this->oRequest->message  = 'xxx';
$this->oRequest->submit_time = time() - (int) $formTime; // from session
$this->oRequest->sender_info => '{"Refferrer":"http:\/\/xxxxx","UserAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko\/20100101 Firefox\/64.0"}';
//etc....

$this->oService = new Cleantalk();
$this->oService->server_url = " http://moderate.cleantalk.org/api2.0/";

// we check both methods, because it is a contact-form with unknown email-adresses.
$this->oResponseUser = $this->oService->isAllowUser($this->oRequest);
$this->oResponseMessage = $this->oService->isAllowMessage($this->oRequest);

NB. If there are some minor php-errors in above code, that is because I copied parts of our real code, to give a picture of it. Because the real code is divided in classes and methods etc. The real code has no (parse-)errors and gets a valid CleantalkResponse object back..

oResponseUser: (oResponseMessage is (almost) the same)

Code: Select all

received => -1
stop_words =>
comment => *** Antispam disabled. Check access key in CleanTalk plugin/module options. ***
blacklisted => 1
allow => 1
id => 1171dd45f986e1e2a3025ef36ff52b9a
errno => 0
errstr =>
fast_submit => 0
spam => 0
js_disabled => 0
sms_allow =>
sms =>
sms_error_code =>
sms_error_text =>
stop_queue => 0
inactive => 1
account_status => 0

codes
    0 => KEY_NOT_FOUND

We used these examples: https://github.com/CleanTalk/php-antispam

Yesterday it worked and gave a nice spam-report. But today we get this response, but as far as I know, we did not change our code.

Thanks for helping.
flexJoly

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 04 Jan 2019, 10:10
by SergeM
Thank you for your feedback.

We will check it as soon as possible. It should happen on the next work week.

Sorry for the inconveniences.

Please, wait.

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 04 Jan 2019, 15:12
by SergeM
We are analyzing this issue and we need some details.

1. Please, send us the successful spam-report.

2. We believe your server uses IPv4 and IPv6 simultaneously. It may cause some issues. Please, disable IPv6 and leave IPv4 only.

3. After that, please, make a test call with empty access key from your server console:
wget -O- --post-data='{"method_name":"check_newuser","sender_email":"stop_email@example.com","sender_nickname":"John Doe","sender_ip":"127.0.0.1","js_on":1,"submit_time":15}' https://moderate.cleantalk.org/api2.0

And send us what you get after the test call.

Thank you.

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 05 Jan 2019, 14:50
by flexjoly
Hi Serge,

We don't want to disable IPv6 on our server with live websites....
It costed us a lot of effort to get it working.... If you think it is not working correctly, then I need more info where to look. (I am no linux expert, only just enough to work with it)

We have 2 older servers, but that are different ip-addresses.

I did the wget-thing:

Code: Select all

Resolving moderate.cleantalk.org (moderate.cleantalk.org)... 159.203.121.181, 78              .47.96.11, 88.198.153.60, ...
Connecting to moderate.cleantalk.org (moderate.cleantalk.org)|159.203.121.181|:4              43... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

    [<=>                                    ] 0           --.-K/s              {
   "inactive" : 0,
   "blacklisted" : 1,
   "fast_submit" : 0,
   "allow" : 0,
   "version" : "7.77",
   "id" : "91197e4ab00b294de42572529fb4dafc",
   "js_disabled" : 0,
   "account_status" : 1,
   "codes" : "FORBIDDEN BL EMAIL_DOMAIN_DISPOSABLE",
   "comment" : "*** Forbidden. Sender blacklisted. stop_email@example.com : Mail               domain for disposable e-mails.  ***"
}
    [ <=>                                   ] 370         --.-K/s   in 0s

2019-01-05 15:44:06 (45.4 MB/s) - written to stdout [370]
I hope this helps.
Greetz, flexJoly

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 05 Jan 2019, 15:13
by SergeCleantalk
Thank you for your feedback.

We will continue the investigation.

Best regards

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 05 Jan 2019, 15:16
by flexjoly
uhhhhhhh
oohhhh i am feeling very stupid an ashamed now... :shock: :? :cry:

I am testing locally.... :idea: :geek: :o :shock:
so the requests did not come from our server-ip-address...

ohoh
could thát be the reason? :idea: :o

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 05 Jan 2019, 15:19
by SergeCleantalk
Could you clarify it was from the beginning or you sent test wget from local server? If IP doesn't match then service will not work.

Best regards

Re: Erro: Antispam disabled. Check access key in CleanTalk plugin/module options.

Posted: 05 Jan 2019, 15:30
by flexjoly
The wget was sent from the server with the right ip-address.

But the php was tested only locally so far. At first it just worked and gave an spam-related feedback.
But after some days it gave the error as posted above.
Maybe the service can give a better error that the ip is not listed?

Is it possible to test locally with an hosting-package?

I will start testing online

I am very sorry to have bothered you with me being so stupid. Please forgive me ;-)

Greetz and thanks!
flexJoly