Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.6.x
Author Message
gravutrad
New Member
New Member


Joined: Feb 27, 2012
Posts: 6

PostPosted: Thu Aug 17, 2017 7:08 pm Reply with quote

Hi to all.

I've totally deactivated sentinel to replace it by other protection (in the simple config, and advanced parameters, in each protection), but i still received sentinel emails blocking googlebots (not in the robots protection list).

does the condition for the write email function in the nukesentinel.php file is really applied:

php Code:
if($blocker_row['activate'] > 0 AND $blocker_row['activate'] < 6)


In the database, all datas in my activate field are well to 0...so the condition shouldn't permit that i receive these emails...

Thanks for advance.
 
View user's profile Send private message
neralex
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1289
Location: Germany

PostPosted: Fri Aug 18, 2017 7:24 am Reply with quote

Strange issue. Do you tried to add the output of $blocker_row['block_name'] to the variable $message inside the write_mail() function in order to check which blocker has used this function call?

For example find:

php Code:
$message .= _AB_REASON . ': ' . $blocker_row['reason'] . "\n";


and add after:

php Code:
$message .= 'Blocker: ' . $blocker_row['block_name'] . "\n";
 
View user's profile Send private message
gravutrad
PostPosted: Fri Aug 18, 2017 4:33 pm Reply with quote

Good idea.

I try and i report more when i tested all.

this is an example of mail received:

Quote:
_AB_DATETIME: 2017-08-18 12:45:24 CEST GMT +0200
_AB_IPBLOCKED: 66.249.66.*
_AB_USERID: Anonymous (1)
_AB_REASON: 1
--------------------
_AB_USERAGENT:
_AB_QUERY: /index.php
_AB_GET: /index.php
_AB_POST: /index.php
_AB_X_FORWARDED: none
_AB_CLIENT_IP: none
_AB_REMOTE_ADDR: 66.249.66.129
_AB_REMOTE_PORT: 41024
_AB_REQUEST_METHOD: GET
--------------------
_AB_WHOISFOR
Unable to query WhoIs information for .


Thanks neralex.
 
gravutrad
PostPosted: Sun Aug 27, 2017 5:18 am Reply with quote

php Code:
_AB_DATETIME: 2017-08-24 15:21:42 CEST GMT +0200

_AB_IPBLOCKED: 151.80.31.*
_AB_USERID: Anonymous (1)
_AB_REASON: 1
Blocker: 1
--------------------
_AB_USERAGENT:
_AB_QUERY: /index.php
_AB_GET: /index.php
_AB_POST: /index.php
_AB_X_FORWARDED: none
_AB_CLIENT_IP: none
_AB_REMOTE_ADDR: 151.80.31.153
_AB_REMOTE_PORT: 32768
_AB_REQUEST_METHOD: GET
--------------------
_AB_WHOISFOR
Unable to query WhoIs information for .


What's the blocker 1?
 
neralex
PostPosted: Sun Aug 27, 2017 8:53 am Reply with quote

Have you made changes on the sentinel-files besides the edit in this function?

$blocker_row['block_name'] and $blocker_row['reason'] should be strings and not integer values. Please re-check your changes to close out copy&paste issues. You can compare it in the db-table: nuke_nsnst_blockers, there you can find all values for each blocker-field.
 
gravutrad
PostPosted: Tue Aug 29, 2017 2:42 am Reply with quote

I've only done the changes posted.

Blocker 1 is so a blocker abuse union.
 
neralex
PostPosted: Tue Aug 29, 2017 12:48 pm Reply with quote

This not what I meant because the values of both variables are shouldn't be integer values. Both are strings like what you can see in the database. There is no filter which is using integer values to "translate" in strings. The fields $blocker_row['block_name'] and $blocker_row['reason'] should be shown in your email as text not as number. So I guess somewhere in your scripts the array values of $blocker_row are overridden or the whole array will be builded in a wrong way.
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17073

PostPosted: Tue Sep 19, 2017 1:28 am Reply with quote

gravutrad, have you resolved this issue?
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.6.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©