News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

httpBL

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

Previous topic - Next topic

Arantor

esoteric: Might have been useful to say you're using 1.1.11...

Wizzlefits

esoteric...

Open up Sources/Subs.php and look for...

if (allowedTo('admin_forum'))
$context['admin_areas']['members']['areas']['httpBL'] = '<a href="' . $scripturl . '?action=httpBL">' . $txt['httpBL_title'] . '</a>';


if it's  not there, which it most likley isn't..., then find

if (allowedTo('manage_bans'))
$context['admin_areas']['members']['areas']['ban_members'] = '<a href="' . $scripturl . '?action=ban">' . $txt['ban_title'] . '</a>';

and add the first bit of code below it. That should fix the missing link.

codysan

Hi Snoop . . . thanks for the MOD . . .

I have a question . . . what happens if a spammer gets through?
I had an individual register today and post spam to one of my boards.
I removed the post, banned the spammer and deleted his (her) account.

Is there a way I can report this IP or add the address, myself, to the spammer database?

Thanks . . .

Wizzlefits

codysan,
You should use Stop Spammer along side httBL.
What one doesn't catch, the other will. Plus with Stop Spammer, you can report the offender.

codysan

#224
Thanks, Snoop . . .

Appreciate the help!!

shaitanfr

#225
This awesome mod is not compatible IPV6. I m frustated :)

People in IPV6 (me too) are directly redirected to the warning page.

shaitanfr

Quote from: shaitanfr on July 01, 2010, 03:43:26 PM
This awesome mod is not compatible IPV6. I m frustated :)

People in IPV6 (me too) are directly redirected to the warning page.


More Info: I can browse your forum. The différence: My domain is managed in IPV6.
I have déactivated IPv6 on my Domain, I should Waiting 24 hours and I will retry.

I can confirm that all my members In IPv6 are redirected to the Warning Page.

snoopy_virtual

Quote from: shaitanfr on July 01, 2010, 04:51:03 PM
Quote from: shaitanfr on July 01, 2010, 03:43:26 PM
This awesome mod is not compatible IPV6. I m frustated :)

People in IPV6 (me too) are directly redirected to the warning page.


More Info: I can browse your forum. The différence: My domain is managed in IPV6.
I have déactivated IPv6 on my Domain, I should Waiting 24 hours and I will retry.

I can confirm that all my members In IPv6 are redirected to the Warning Page.

Unluckily I cannot experiment with that to sort it, because all my domains and my computers use IPv4 instead of IPv6

I don't even really know how IPv6 works and the differences between both systems.

I will write it in my "List Of Things To Do" but I can't promise anything.

Anybody there with more experience with IPv6 who could give me a hand with it?

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

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

shaitanfr

#229
Thank you.

Now it's ok for me, I don't need IPV6.

Other problem, I have error code in the warning page:

"Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 127"

On line 127
$response = $_SESSION['response'];

replaced by:

if (isset($_SESSION['response'])) $response = $_SESSION['response'];

Ok now. But I have others errors on the second page.
(no php knowlege, my members helped me  ::) )

My warning page: http://passion-xbmc.org/warning.php

Smf 1.1.11

French translation.

$txt['httpBL_warn_title_1'] = 'Attention';
$txt['httpBL_warn_head_1'] = '<span class="red">Attention</span><br />Votre accès au site Passion-Xbmc a été bloqué, non sans raisons.';
$txt['httpBL_warn_infected_1'] = 'La cause la plus probable de ce blocage est que votre ordinateur, ou un ordinateur sur votre réseau local, a été <b>infecté par un virus, cheval de Troie ou ver</b>. Les ordinateurs infectés sont utilisés à l\'insu de leurs propriétaires par des criminels, pour attaquer de différentes façon des sites tels que celui que vous essayez de visiter.';
$txt['httpBL_warn_dinamic_IP_1'] = 'Si votre IP est dynamique et non pas fixe, celle ci change à chaque fois que vour redémarrez votre routeur. Peut être le problème est il seulement que vous utilisez aujourd\'hui une IP qui a servie récemment à un ordinateur infecté. Aussi vous pouvez tenter de redémarrer votre routeur et revenir ensuite sur ce site afin de vérifier si l\'accès s\'y fait alors normalement.';
$txt['httpBL_warn_technician_1_1'] = 'Dans tous les cas, nous vous recommandons de vérifier ou faire vérifier par un technicien que votre ordinateur n\'est pas infecté. Le site <b>www.projecthoneypot.org</b> référence votre IP';
$txt['httpBL_warn_technician_2_1'] = 'sur sa liste noire, vous pourrez le vérifier aisément et obtenir plus de détails.';
$txt['httpBL_warn_info_1'] = 'Pour plus d\'informations, n\'hésitez pas à contacter:';
$txt['httpBL_warn_at_1'] = 'at';
$txt['httpBL_warn_dot_1'] = 'dot';
$txt['httpBL_warn_hurry_1'] = 'Vous trouverez des explications détaillées à la suite de ces lignes que nous vous engageons vivement à lire, dans votre intérêt. Toutefois, si vous êtes pressés, vous pouvez accéder immédiatement au site, mais sachez qu\'il est probable que votre ordinateur est infecté. Nous allons vous poser deux fois de suite des questions faciles sous une forme telle qu\'un robot ne saurait y répondre. Répondez à la question ci dessous (juste le nombre) pour prouver que vous n\'êtes pas un robot et cliquez sur le bouton <b>"Envoyer"</b>:';
$txt['httpBL_warn_send_1'] = 'Envoyer';
$txt['httpBL_warn_blank_1'] = 'Ne mettez rien dans ce champ.<br />Saisissez la réponse dans la première case.';
$txt['httpBL_warn_wrong_answer_1'] = 'Peut être nos explications étaient elles confuses ou avez vous frappé la mauvaise touche par mégarde. On reprends :) Ci dessous, deux cases, il ne faut mettre la réponse que dans la première, la somme du calcul simple ci dessous. Ne mettez rien dans la seconde case.';
$txt['httpBL_warn_good_answer_1'] = 'Votre réponse était la bonne, mais un robot, bien que ne comprenant pas la question, pourrait aussi avoir donné la bonne en entrant des chiffres aléatoirement. Un deuxième et dernier test est une contre mesure efficace autant que nécessaire. Saisissez à nouveau la bonne réponse et cliquez sur: <b>Envoyer</b>';


Thank you for this awesome Mod.

( I have 80 mod installed, this one without crying and like a charm with package manager).  ;)

Sorry for my poor English.

Edit:

Others errors fixed:

$_SESSION['response']['errorNumber'] = $_SESSION['response']['errorNumber'] + 10;
httpBL_update_log($response['ID'], 1, $_SESSION['response']['errorNumber']);


Replaced by:

if (isset($_SESSION['response']['errorNumber']))
{
$_SESSION['response']['errorNumber'] = $_SESSION['response']['errorNumber'] + 10;
httpBL_update_log($response['ID'], 1, $_SESSION['response']['errorNumber']);
}


Search

$_SESSION['response']['errorNumber']++;
httpBL_update_log($response['ID'], 1, $_SESSION['response']['errorNumber']);


Replace by:

if (isset($_SESSION['response']['errorNumber']))
{
$_SESSION['response']['errorNumber']++;
httpBL_update_log($response['ID'], 1, $_SESSION['response']['errorNumber']);
}


3 errors remaining:

Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 209

Notice: Undefined index: errorNumber in /home/shaitan/www/passion-xbmc/warning.php on line 209

Notice: Undefined index: ID in /home/shaitan/www/passion-xbmc/warning.php on line 211

Will be fixed tomorrow

pviagem

This looks a really great MOD but I'm having a problem no enable it.

I'm using SMF 1.1.11 and httpBL 2.3.4 and on a 1st look everything seems ok, but in fact I can't enable the MOD. On the httpBL settings I can add and save data in all fields except the Enable/Disable MOD httpBL one. The check box is unclickable.

Thanks for any comment or help.

shaitanfr

pviagem:

You should complet all fields.

pviagem

Quote from: shaitanfr on July 05, 2010, 06:52:38 PM
pviagem:

You should complet all fields.

Great! Thanks a lot.

snoopy_virtual

Quote from: shaitanfr on July 04, 2010, 03:53:59 PM
...
Now it's ok for me, I don't need IPV6.
...

Glad to hear it.

It means I'm not in a hurry now to make it compatible with IPv6. Anyway we will need to do it someday, as IPv6 is the future of the web.




Quote from: shaitanfr on July 04, 2010, 03:53:59 PM

...

"Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 127"

On line 127
$response = $_SESSION['response'];

replaced by:

if (isset($_SESSION['response'])) $response = $_SESSION['response'];

Ok now. But I have others errors on the second page.
(no php knowlege, my members helped me  ::) )

...

Others errors fixed:

...

3 errors remaining:

Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 209

Notice: Undefined index: errorNumber in /home/shaitan/www/passion-xbmc/warning.php on line 209

Notice: Undefined index: ID in /home/shaitan/www/passion-xbmc/warning.php on line 211

Will be fixed tomorrow

You are not fixing the errors. You are making them worst.

If the response is not set in $_SESSION there is something wrong somewhere else, because you really need the response if you want the page warning.php to work.

What you are doing is something like: "If the response is not set, forget about it".

Let me think about it for a while to see if I find why you get that error.

In the mean time I suggest you leave your page warning the way it was.




Thanks for the French translation.

Really appreciate that.

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.

snoopy_virtual

Quote from: snoopy_virtual on July 06, 2010, 07:05:45 AM
Quote from: shaitanfr on July 04, 2010, 03:53:59 PM

...

"Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 127"

etc etc


You are not fixing the errors. You are making them worst.

If the response is not set in $_SESSION there is something wrong somewhere else, because you really need the response if you want the page warning.php to work.

What you are doing is something like: "If the response is not set, forget about it".

Let me think about it for a while to see if I find why you get that error.

In the mean time I suggest you leave your page warning the way it was.

OK, I have been thinking about this problem for a while and I think I know now why you get these errors:

The warning.php page is supposed to work when somebody have a bad IP and is redirected here through the mod.

When that happen they already have a "response" inside their "$_SESSION", so there are no errors. (Shouldn't be at least)

You are getting the errors because you are going to the page warning.php directly to see how it looks like, without passing first through the mod, so you haven't got a "response" inside your "$_SESSION".

The way you are modifying the page warning.php you are not going to have any errors when you visit it to see how it looks like, but (if you are not careful) maybe it's not going to work properly when a spammer arrives to it.

I will sort this in the next version so you never get an error visiting the page warning.php in any case. Either when you are redirected there automatically or when you are just viewing the page to see how it looks like.

In the mean time I think it would be better if you leave the page the way it was and just ignore any errors you may get when you just visit it.

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.

shaitanfr

Thank you for these explanations very clear, I will follow your recommendations.

kaamaru

Many of my members view the site on there phones using 3G. Lodes of spammers use ips from carries like tmobile and AT&T so some of my members get blocked from the site. How can I disable HTTBL for mobile carriers?

snoopy_virtual

Quote from: Calumks on July 07, 2010, 06:17:35 AM
Many of my members view the site on there phones using 3G. Lodes of spammers use ips from carries like tmobile and AT&T so some of my members get blocked from the site. How can I disable HTTBL for mobile carriers?

I am not an expert on 3G mobile phones because I don't use them so, if anybody more expert than me in this matter sees I'm not right here, please tell me.

A quick search on any security web page will tell you that there are already thousands of viruses and trojans for mobile phones but almost nobody uses anti-viruses in their phones, so a very big percentage of all the mobiles in the world are already infected.

So when you said:

Quote
Lodes of spammers use ips from carries like tmobile and AT&T

That's not exactly true. You should have said instead:

Quote
A lot of phones from tmobile and AT&T are already infected with trojans sending spam all over the world.

As far as I know, it doesn't matter if somebody is viewing your site from a computer or from a mobile. In any case the IP is always unique. So the problem is not if they are viewing your site using one method or other but if their IP is from a spammer or not.

I think you should try and find out the threat level your member's IPs have and then adjust the "Threat level considered bad" and the "Threat level considered VERY bad" so most of them haven't got any problem.

Anyway you should consider as a possibility that maybe if your members are stopped by mod httpBL is because they have a trojan inside their mobiles, so instead of you changing anything in your site, they should try to clean them.

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.

FragaCampos

#238
I just installed this mod after almost 2 years with a honeypot installed in my forum and i must say this to snoopy_virtual:
I have 45 mods installed and this one is surely one of the best. Installed flawlessly and i didn't even had to edit the index.template of my theme. Absolutely awesome. And the mod's configuration... how brilliant is that?
I have Stop Spammer installed since a long time ago and i must congratulate you for all the work, patience and support you've done here. I can't even think about all the hours you lost here to give us this free and absolutely must have software. Thanks a lot mate.

Best regards,
FragaCampos.

PS: Hope i'm not being misleading when i say "i didn't even had to edit the index.template", because i read your great tutorial and followed the instructions to edit the index.template ;)

snoopy_virtual

Thank you FragaCampos.

Really appreciate your opinion.   ;)

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.

Advertisement: