httpBL

Started by Diego Andrés, February 17, 2010, 03:55:54 PM

Previous topic - Next topic

DarkAngel612

Just letting you know I am waiting for a spammer to register...LOL Whatever the reason, not sure what happened but it has suddenly started working on one of the other sites. Did nothing to it at all and the other day a suspected spammer actually showed its icons as yellow.

Maybe it will also behave on our main site, which is the one I am waiting for a spammer to appear on.

Will keep you posted.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Lazybones

I was looking at the human warning page and was wondering if in future versions if you could allow us to configure the challenge and response questions... Thus making it more forum unique and harder to master for spammers? My humans log seems rather long where the questions where answered and the IPs don't belong to any members.




snoopy_virtual

Quote from: Lazybones on March 23, 2012, 05:01:46 PM
I was looking at the human warning page and was wondering if in future versions if you could allow us to configure the challenge and response questions... Thus making it more forum unique and harder to master for spammers?

As I have explained a few times I am not using SMF now, so I am not going to add any improvements for my SMF mods. It's not easy to write code for software you are not using

As soon as I have some spare time I will do a final version for SMF sorting a few bugs we have found lately, but all the improvements I will do them only for the new versions I am doing for Wedge.

Quote from: Lazybones on March 23, 2012, 05:01:46 PM
My humans log seems rather long where the questions where answered and the IPs don't belong to any members.

That's because one of the bugs we have found and I have to sort in the final version I was talking about.

Try reading this problem first reported by Sea Mac here:

http://www.simplemachines.org/community/index.php?topic=366399.msg3080909#msg3080909

I suggested him a small change in the warning page to sort that problem here:

http://www.simplemachines.org/community/index.php?topic=366399.msg3081023#msg3081023

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Lazybones

Thank-you for pointing the link to the fix... I actually had to search through many of your posts to find a reference to the forum you have switched to... Interesting..

However since you will not be maintaining this mod anymore and spam is a constant battle I have switched to the Bad Behavior mod which includes the same honeypot and is still under active development.

Keep up the good work in the mod community...

snoopy_virtual

Don't understand what you mean. I left SMF more than a year ago but I have been here supporting everybody with problems. So I think I am maintaining this mod.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Lazybones

Quote from: snoopy_virtual on March 28, 2012, 12:07:35 PM
Don't understand what you mean. I left SMF more than a year ago but I have been here supporting everybody with problems. So I think I am maintaining this mod.

I said maintaining, not supporting.

You stated your self that it is hard to write for a forum you are not using, and downloading the mod right now it clearly has a hole in it (although fixed through a manual means if you dig through this 87 page thread).

What happens if the next SMF security update breaks the mod?

The reason I switched to SMF years ago was the point and click security / mod management I no-longer wanted to be constantly editing forum code between releases and exploits so I can focus on content and my users...

gisfreak

hello, my member report this error while he post and active in the forum

Warning: Cannot modify header information - headers already sent by (output started at /forum/Sources/Subs.php:4646) in forum/Sources/httpBL_Subs.php on line 128[/b]

[b]Warning: Cannot modify header information - headers already sent by (output started at /forum/Sources/Subs.php:4646) in forum/warning.php on line 218


any clue ?
Me fail English? That's unpossible.

snoopy_virtual

With this information you give I can see your member was considered suspicious by the mod (because his data was inside the spammers database) and sent to the file warning.php to prove he is human.

He must has proved it, because you would never pass line 218 inside the file warning.php otherwise.

That line 218 inside the file warning.php was trying to change the headers to redirect your member to the last page he was visiting.

At the same time, line 128 of the file httpBL_Subs.php was trying to change the headers to add a value to the $_SESSION with the data found by the file warning.php (the fact that he is human) so he won't be bother again by the mod for at least 24 hours.

In both cases the mod couldn't modify the headers properly because you have something inside the file Subs.php in line 4646 that had already sent the header information.

I suppose you must have another mod that has modified the file Subs.php and is doing that, but cannot tell for sure unless you tell me what do you have inside that line 4646 of the file Subs.php.

Inside the original file Subs.php (without any mods) there is nothing sending headers when you are not suppose to.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

gisfreak

thanx, line 4646 on subs is empty, I attach it for you, please take a look
Me fail English? That's unpossible.

snoopy_virtual

Somebody had added at the end of your file a new function called function enik_copy() used to hide the Simple Machines LLC copyright and substitute it for hidden links to the sites smfpersonal.net and allmxcars.com

I don't know if it was you who added that function or if it was some mod you have installed, but that function has been written by somebody called Enik. Anyway, whoever added that function there had done it wrong and that was causing your errors.

I have modified your file leaving that function but doing it properly and have attached it here.

You shouldn't have that problem again, but I suggest you don't use functions done by people who doesn't know what they are doing.

And if it was my forum I would delete that function. I don't like functions adding hidden links to sites I don't know.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

gisfreak

Enik is one of mods maker here, he make hide tag special mods, oh I see, I saw those links in the bottom of my forum, links when I hover to "2011 by enik" and "hide tag special"

thanx million, snoopy_virtual
Me fail English? That's unpossible.

sles

My problem after upgraded smf to 1.1.16

Click "Spammers Log" Error
Table 'database.smf_log_httpBL' doesn't exist
File: /home/www/virtual/domain.com/htdocs/forum/Sources/httpBL_Config.php
Line: 295

Line: 298


        // Count the total number of log entries.
        $request = db_query("
                SELECT COUNT(*)
                FROM {$db_prefix}log_httpBL
                WHERE " . $query_where, __FILE__, __LINE__);


how to resolve?  Thank you

NOTE:

SMF Configured: $db_prefix = 'smf_';

MySQL Table:  'smf_log_httpbl'

snoopy_virtual

I haven't got just now any test forum using smf 1.1.16 but it looks like the change from 1.1.15 to 1.1.16 must have been a big one, because I am getting reports from other mods that are also not working properly after an upgrade to 1.1.16

So, as soon as I have some spear time I will set up a test forum with 1.1.16 to see exactly what's going on an I will upgrade all the mods.

That may take some time though, because I have very few spear time these days so, in the mean time, try changing the value of $db_prefix from 'smf_' to 'database.smf_' and see if that sort your problem temporarily.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

butchs

Make sure it is set as a global before the function...

global $db_prefix;
:)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

snoopy_virtual

Of course it's global.

Why do you think it's been working for 4 years?

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

sles

I changed the value of $db_prefix from 'smf_' to 'database.smf_'  still not work.

AND,


global $db_prefix;


Default set already.

sles

UPDATED: I reinstall mod, it work fine.

Ronald_1938

I am getting some errors as you can see below:


Quotehttp://www.theover50goldengroup.com/smf/index.php? Apply Filter: Only show the errors with the same message 2: Missing argument 1 for httpBL_look_for_empty_ip(), called in /home/theoverg/public_html/smf/Sources/httpBL_Subs.php on line 680 and defined Apply Filter: Only show the errors from this file  File: /home/theoverg/public_html/smf/Sources/httpBL_Subs.php
Line: 517
Quote
http://www.theover50goldengroup.com/smf/index.php?action=login2 Apply Filter: Only show the errors with the same message 8: Undefined variable: ip Apply Filter: Only show the errors from this file  File: /home/theoverg/public_html/smf/Sources/httpBL_Subs.php
Line: 519

Any ideas as to why I see these.  The mod. sure does work, stops them in there track, well the odd one slips in..

Would appreciate any kind of advice or help on this..

Ron..

snoopy_virtual

It is a bug in the code.

While I sort it in the next version you can correct it manually:

Inside your Sources folder look for the file httpBL_Subs.php

Inside it (line 680) look for the code:


$ip = httpBL_look_for_empty_ip();


Replace it with:


$ip = httpBL_look_for_empty_ip($ip);


Save the modified file and upload it to your forum.

Sorry  :-[

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Ronald_1938

Thank you Snoopy, I have made the change and will see what happens..


By the way great mod..


Thanks Ron..

Advertisement: