Advertisement:

Author Topic: httpBL  (Read 375805 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,062
    • Arantor on GitHub
Re: httpBL
« Reply #220 on: June 09, 2010, 10:26:15 AM »
esoteric: Might have been useful to say you're using 1.1.11...
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Wizzlefits

  • Jr. Member
  • **
  • Posts: 115
  • Gender: Male
  • Don't ask! I have NO idea!
    • The Bloody Blog
Re: httpBL
« Reply #221 on: June 09, 2010, 08:55:51 PM »
esoteric...

Open up Sources/Subs.php and look for...
Code: [Select]
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
Code: [Select]
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.

Offline codysan

  • Newbie
  • *
  • Posts: 8
Re: httpBL
« Reply #222 on: June 18, 2010, 12:27:22 AM »
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 . . .

Offline Wizzlefits

  • Jr. Member
  • **
  • Posts: 115
  • Gender: Male
  • Don't ask! I have NO idea!
    • The Bloody Blog
Re: httpBL
« Reply #223 on: June 18, 2010, 03:34:54 PM »
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.

Offline codysan

  • Newbie
  • *
  • Posts: 8
Re: httpBL
« Reply #224 on: June 18, 2010, 06:20:46 PM »
Thanks, Snoop . . .

Appreciate the help!!
« Last Edit: July 01, 2010, 05:21:37 PM by codysan »

Offline shaitanfr

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Passion Xbmc
Re: httpBL
« Reply #225 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.
« Last Edit: July 01, 2010, 03:47:45 PM by shaitanfr »

Offline shaitanfr

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Passion Xbmc
Re: httpBL
« Reply #226 on: July 01, 2010, 04:51:03 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.

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,155
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: httpBL
« Reply #227 on: July 04, 2010, 08:22:25 AM »
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.

Offline butchs

  • SMF Hero
  • ******
  • Posts: 1,712
  • Lost 7GB bandwidth!
    • EastCoastRollingThunder
Re: httpBL
« Reply #228 on: July 04, 2010, 10:26:46 AM »
They have been trying to implement that for many years.  For fun I found a few links:

http://stackoverflow.com/questions/444966/working-with-ipv6-addresses-in-php
http://phpro.org/tutorials/Filtering-Data-with-PHP.html#9
http://www.weberdev.com/get_example-3921.html


Just in case you get adventuresome.
:o
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Offline shaitanfr

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Passion Xbmc
Re: httpBL
« Reply #229 on: July 04, 2010, 03:53:59 PM »
Thank you.

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

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

Code: [Select]
"Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 127"
On line 127
Code: [Select]
$response = $_SESSION['response'];
replaced by:

Code: [Select]
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.

Code: [Select]
$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:

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

Replaced by:

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

Search

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

Replace by:

Code: [Select]
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
« Last Edit: July 04, 2010, 04:47:13 PM by shaitanfr »

Offline pviagem

  • Semi-Newbie
  • *
  • Posts: 16
Re: httpBL
« Reply #230 on: July 05, 2010, 06:36:55 PM »
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.

Offline shaitanfr

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Passion Xbmc
Re: httpBL
« Reply #231 on: July 05, 2010, 06:52:38 PM »
pviagem:

You should complet all fields.

Offline pviagem

  • Semi-Newbie
  • *
  • Posts: 16
Re: httpBL
« Reply #232 on: July 05, 2010, 07:04:36 PM »
pviagem:

You should complet all fields.

Great! Thanks a lot.

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,155
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: httpBL
« Reply #233 on: July 06, 2010, 07:05:45 AM »
...
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.




...

Code: [Select]
"Notice: Undefined index: response in /home/shaitan/www/passion-xbmc/warning.php  on line 127"
On line 127
Code: [Select]
$response = $_SESSION['response'];
replaced by:

Code: [Select]
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.

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,155
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: httpBL
« Reply #234 on: July 06, 2010, 09:42:58 AM »

...

Code: [Select]
"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.

Offline shaitanfr

  • Jr. Member
  • **
  • Posts: 249
  • Gender: Male
    • Passion Xbmc
Re: httpBL
« Reply #235 on: July 06, 2010, 09:50:41 AM »
Thank you for these explanations very clear, I will follow your recommendations.

Offline kaamaru

  • Full Member
  • ***
  • Posts: 488
  • Gender: Male
    • iHackMyi
Re: httpBL
« Reply #236 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?

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,155
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: httpBL
« Reply #237 on: July 07, 2010, 09:32:54 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.

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,281
  • Gender: Male
    • docsPT
Re: httpBL
« Reply #238 on: July 07, 2010, 11:55:40 AM »
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 ;)
« Last Edit: July 08, 2010, 10:52:22 AM by FragaCampos »

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,155
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: httpBL
« Reply #239 on: July 08, 2010, 07:15:03 AM »
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.