Customizing SMF > Modifications and Packages

httpBL

(1/231) > >>

snoopy_virtual:
Link to Mod

MOD httpBL v2.2
============

[+]Author:snoopy_virtual[+]Version:2.2[+]Release:17th February 2010[+]Languages: [+]Compatible With:SMF 1.1.1 - 1.1.11
SMF 2 RC2          Comment this ModMy MODs          Contact Snoopy via Skype
[o]Change Log
[o]Road Map(Before you ask for a new feature or report a bug
check if it's already in the cue waiting to be done)
Features:


* This mod uses the http:BL API from Project Honey Pot to stop spammers from accesing your forum.

* This mod is completely compatible with M-DVD's MOD Stop Spammer. You can have both mods installed or only one of them to stop the spammers in your forum, but I would recommend you to have both.

* The main differences between both mods are:


* MOD Stop Spammer checks the database from Stop Forum Spam while MOD httpBL checks the database from Project Honey Pot.

A lot of spammers are already in both databases, but some spammers are only in one of them, so it won't be a bad idea anyway to check both databases.

* MOD Stop Spammer cheks if the visitor is a spammer when they try to register inside the forum while MOD httpBL checks them as soon as they arrive to the forum and redirect them to a file called warning.php making the whole site invisible to them.

This way even harvesters (robots that never post in a forum, but search for email addresses to send them spam later) and any other kind of malicious web robots cannot even see any part of the site.
Installation:


* 1.- Go to Project Honey Pot and register there to become a member of the project.

* 2.- Once you are a member, follow the instructions from their site to install a Honey Pot in your server.

* 3.- After you get your first honey pot activated, ask them for your own http:BL API key.

* 4.- Download and install MOD httpBL as any other mod.
If you need help installing this mod or you have any question about it, you can ask just here in the post you are reading.

Thanks to Project Honey Pot for your DB and APIs.

Thanks to praseodym for the idea. His mod is for Drupal, but I have adapted some of his functions to work with SMF as well.

==========================


--- Quote ---Languages (normal & utf-8)
[+]English
[+]English_British
[+]Spanish_Es
[+]Spanish_Latin
[/list]

--- End quote ---


--- Code: ---$txt['httpBL_honeyPot_link_error'] = 'Wrong honeyPot link. Check your MOD httpBL configuration.';
$txt['httpBL_honeyPot_key_error'] = 'Wrong http:BL API key. Check your MOD httpBL configuration.';
$txt['httpBL_title'] = 'MOD httpBL';
$txt['httpBL_description'] = 'The MOD httpBL checks every visitor\'s IP to see if it\'s already
in projecthoneypot\'s DB. If this is true the mod redirects them to the warning.php page denying
them access to the forum.<br />Here you can turn the mod on and off and change some of its parameters.';

$txt['httpBL_config'] = 'MOD httpBL settings';
$txt['httpBL_enable'] = 'Enable/Disable MOD httpBL';
$txt['httpBL_enable_bad_API_key'] = 'The API key you have written is wrong. Check it out carefully and try again.';
$txt['httpBL_honeyPot_link'] = 'Link to your Honey Pot';
$txt['httpBL_honeyPot_link_sub'] = 'If you want to use MOD httpBL you must have a Honey Pot
installed in your server. If you haven\'t got one you need to go first to
<a href="http://www.projecthoneypot.org/?rf=62759" target="_blank">www.projecthoneypot.org</a>
to ask for one and install it in your server. After that, write here the link to that Honey Pot.
It will be something like:<br /><b>http://www.yourwebsite.com/yourhoneypot.php</b>';
$txt['httpBL_honeyPot_key'] = 'Your Honey Pot http:BL API key';
$txt['httpBL_honeyPot_key_sub'] = 'If you want to use MOD httpBL you must have as well a
http:BL API key from Project Honey Pot. If you haven\'t got one you need to go first to
<a href="http://www.projecthoneypot.org/?rf=62759" target="_blank">www.projecthoneypot.org</a>
to sign up for one and write it here. Please notice they are not going to give you one if you
haven\'t installed a Honey Pot, so you better do that first.';
$txt['httpBL_honeyPot_word'] = 'Keyword of your Honey Pot link';
$txt['httpBL_honeyPot_word_sub'] = 'This is the only word in your Honey Pot link the spammers are
going to see. Write something to attract them and make them click on it and not anything scary for them.
If you cannot find out a good word just leave it blank. The mod will choose one for you.';
$txt['httpBL_info_email_1'] = 'First word of your email';
$txt['httpBL_info_email_2'] = 'Second word of your email';
$txt['httpBL_info_email_3'] = 'Third word of your email';
$txt['httpBL_info_email_sub'] = 'The mod needs your email address to tell you if there are any problems
and to show it to the human beings unlucky enough to have an IP considered as spammer and not knowing
how to get out of the page <b>warning.php</b>, so they can ask you for help. Then, it has to be a valid
email address. We have split it into 3 words so the robots cannot see it. For example, if your address is
<b>info@yourwebsite.com</b> the first word is <b>info</b>, the second one <b>yourwebsite</b>,
and the third one <b>com</b>.';
$txt['httpBL_enable_bad_email'] = 'Check the email address you have written.
You cannot leave blank any of the 3 words.';
$txt['httpBL_bad_last_activity'] = 'Number of days to consider good an IP';
$txt['httpBL_bad_last_activity_sub'] = 'If an IP used to belong some time ago to a spammer, but
nobody has seen it doing anything wrong since at least this number of days, we don\'t consider it
dangerous now and we leave the visitor pass.';
$txt['httpBL_bad_threat'] = 'Threat level considered bad';
$txt['httpBL_bad_threat_sub'] = 'Project Honey Pot gives every IP a threat level which is changing
every day depending on what this IP does and how many days ago it did it. Every IP with a threat
level greater than the number you put here won\'t be able to pass. Anyway we wouldn\'t recommend
you to change these last 2 values until you know the way the mod works.';
$txt['httpBL_viewlog_extra'] = 'View extra information in the log';
$txt['httpBL_viewlog_extra_sub'] = 'If you tick this options you are going to see all
the information in the log, but maybe it\'s too much and you will loose perspective.
Sometimes it\'s better to see only the important things.';
$txt['httpBL_config_sub_1'] = 'If you want to see the look of your "warning.php" page with
this settings (the page everybody with an IP considered dangerous is going to be redirected)
press this link:';
$txt['httpBL_config_sub_2'] = 'If you want to change its design or translate this page and you
don\'t know how, you can ask for help in the support forum:';

$txt['httpBL_viewlog'] = 'MOD httpBL log';
$txt['httpBL_viewlog_description'] = 'Every time the MOD httpBL stops a spammer or detects an
internal error adds an entry to this log you can see here.';
$txt['httpBL_log_no_entries'] = 'There is no entries in the MOD httpBL log';
$txt['httpBL_log_date'] = 'Date';
$txt['httpBL_log_ip'] = 'IP';
$txt['httpBL_log_threat'] = 'Th. L.';
$txt['httpBL_log_threat_long'] = 'Threat Level - The threat level of this IP in Project Honey Pot database.';
$txt['httpBL_log_activity'] = 'L. B. A.';
$txt['httpBL_log_activity_long'] = 'Last Bad Activity - The number of days since this IP was seen
doing domething wrong.';
$txt['httpBL_log_suspicious'] = 'S.';
$txt['httpBL_log_suspicious_long'] = 'Suspicious - Just suspicious of being a spammer.';
$txt['httpBL_log_harvester'] = 'H.';
$txt['httpBL_log_harvester_long'] = 'Harvester - A robot that surfs the internet looking for
email addresses to use them later to send spam.';
$txt['httpBL_log_comment'] = 'C.';
$txt['httpBL_log_comment_long'] = 'Comment Spammer - A robot that post to blogs and forums.
These posts typically are full of links to sites being promoted by the spammers.';
$txt['httpBL_log_url'] = 'Page';
$txt['httpBL_log_url_long'] = 'The page this IP was visiting when it was detected and expelled by the mod.';
$txt['httpBL_log_user_agent'] = 'Browser used by this IP';
$txt['httpBL_log_error_message'] = 'Error Message';
$txt['httpBL_log_no_error'] = 'No error';
$txt['httpBL_log_remove_all_confirm'] = 'Are you sure you want to delete all MOD httpBL log entries?';
$txt['httpBL_log_remove_selected_confirm'] = 'Are you sure you want to delete all selected
MOD httpBL log entries?';
$txt['httpBL_yes'] = 'Yes';
$txt['httpBL_pages'] = 'Pages';
$txt['httpBL_threat_low'] = 'Low threat';
$txt['httpBL_threat_medium'] = 'Medium threat';
$txt['httpBL_threat_high'] = 'High threat';
$txt['httpBL_threat_very_high'] = 'Very high threat';
$txt['httpBL_threat_colors'] = 'Meaning of colors:';

--- End code ---

The only file a human visitor may ever see is the file warning.php telling him that his IP has been hijacked by a spammer and telling him what to do in this case, so apart from the above lines you need to translate this file if your visitors speak another language.

As all my websites are normally visited from people who speak either english or spanish, I have done this file warning.php in both these 2 languages, so if your visitors speak (let's say) either english or german, you will only need to replace the spanish part with the same thing in german.

I welcome new translations here, in this post you are reading

==========================

Características:


* Este mod usa la http:BL API de Project Honey Pot para impedir que los spammers puedan acceder a vuestro foro.

* Este mod es totalmente compatible con el MOD Stop Spammer de M-DVD. Puedes tener instalados los 2 mods o solo uno de ellos para parar a los spammers en tu foro, pero yo te recomendaría instalar los 2.

* Las principales diferencias entre los 2 mods son:


* MOD Stop Spammer usa la base de datos de Stop Forum Spam mientras que MOD httpBL usa la base de datos de Project Honey Pot.

Muchos spammers estan en las 2 bases de datos a la vez, pero algunos spammers solo están en una de ellas, por lo que no es una mala idea comprobar las 2 bases de datos.

* MOD Stop Spammer comprueba si un visitante es un spammer cuando trata de registrarse en el foro, mientras que MOD httpBL lo comprueba en cuanto que llegan al foro y los redirecciona a un archivo llamado warning.php haciendo que toda la web les sea totalmente invisible.

De esta forma incluso los recolectores (robots que nunca postean en los foros, sino que se dedican a buscar direcciones de email para mandarles spam) y otros tipos de robots maliciosos no pueden ver ninguna parte de vuestra página web.
Instalación:


* 1.- Ir a Project Honey Pot y registraros allí para haceros miembros del proyecto.

* 2.- Una vez que seais miembros, seguir las instrucciones de su página para instalar un Honey Pot en vuestro server.

* 3.- Cuando tengáis activado vuestro primer honey pot, pedirles vuestra propia http:BL API key.

* 4.- Bajaros el MOD httpBL e instalarlo como cualquier otro mod.
En caso de que necesites ayuda con alguno de estos pasos o que tengas alguna pregunta sobre el mod, puedes hacerlo aquí mismo es este post que estás leyendo.

Y si no hablas inglés, visita el foro de soporte de este mod en nuestro idioma.

==========================

Change Log:


--- Quote ---Version 1.0 - 17th August 2009
  oInitial release  oCan be installed in any PHP page, not only SMF  oCan block any spammer from viewing your site  oIt checks IP in Project Honey Pot DB  oIf match, the visitor is redirected to the "warning.php" page  oKeeps a log of "IPs stopped" in a text file in your server  oCompatible with any PHP program, so it's compatible with all SMF versionsVersion 2.0 - 11th February 2010
  -Eliminated compatibility with other programs, making it now exclusive for SMF  +Added a powerful install script which now does everything for you with just one click  +Added an easy-to-use configuration interface to control the mod  -Eliminated the text file log, too difficult to find and read  +Added a log table in the database  +Added a view-log interface to see the information stored in it  ?Unistall old version and install new one  ?Need to edit manually 2 small things in index.template.php if you are not using the default oneVersion 2.1 - 15th February 2010
  +Added compatibility with SMF 2.0 RC2  +Added a color system in the view-log page to see threat level of each IP stopped by the mod  +Added an option to see the view-log page with only important information or with all the extra data  +Added some lines to the language files for the new features  ?Unistall old version and install new one  ?No need to edit manually any template file if you are updating from version 2.0Version 2.2 - 17th February 2010
  +Added cached values if cache is enabled to reduce time  +Added more methods to find the visitor's IP  !Sorted issue with servers not using Mysql  ?Unistall old version and install new one  ?No need to edit manually any template file if you are updating from version 2.0 or 2.1
--- End quote ---

--- Quote ---Legend
oFeature*Change+Added-Eliminated!Bug Fixed?How to Update
--- End quote ---


==========================

Road Map:


--- Quote ---Things to do in the near future: (16th February 2010)

   *I need to change the tutorial with the instruccions to install it, concentrating more in the way to ask Project Honey Pot for a http:BL API key and the couple of small things you need to edit in the file index.template.php, as the actual installation is now done as any other mod, via the Package Manager with just one click.
 
   +When the mod finds an error it writes it in the log table. It should also email the admin if the error is an important one.
 
   +I need to add a counter to see how many spammers the mod have stopped and display it somewhere.
 
   +I need to Add a button in the view-log page (with some javascript) to hide or show the legend. After some days using the mod you don't really need to see it all the time.
 
   +I need to Add a button in the view-log page to change quickly from "normal view" to "see all the extra info" without needing to change that in the config page every time.
 
   +I need to write a FAQ with some things I already know they are going to start asking.
 

--- End quote ---

--- Quote ---Legend
*To be Changed+To be Added-To be Eliminated!Bug to be Fixed
--- End quote ---

snoopy_virtual:
While we were waiting for the mod being approved we were already trying to improve it in my site, so we are going to continue  here the conversation we had there.

If you don't know what we are talking about, check previous post in:

http://www.snoopyvirtualstudio.com/trankos/portal/index.php?option=com_smf&Itemid=36&board=30.0

Wizzlefits:
Congrats Snoopy!!!  ;D ;D ;D ;D ;D

And anyone reading this...
GET THIS MOD!!! It is freaking AWESOME!

And don't forget to pick up Stop Spammer

snoopy_virtual:
Thanks Wizzlefits

And continuing what we were saying in my site, don't forget to tell me if with this new version 2.2 you still get anybody with "No IP"

I am just installing anyway CrawlTrack so I can do a few more tests myself about that.

madfitz:
Snoopy, my last post (and attached image) in your site was with v2.2 installed (sorry, I thought I said that).

Navigation

[0] Message Index

[#] Next page

Go to full version