News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

httpBL

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

Previous topic - Next topic

giveaway365.com

In the new version I get the below error:
8: Undefined index: search_engine
File: /home/content/x/x/x/xxx/html/Sources/httpBL_Subs.php
Line: 611
Line:611 =    if (!$values['search_engine'] && $values['ip'] != '127.1.80.1')


8: Undefined variable: key
File: /home/content/x/x/x/xxx/html/Sources/httpBL_Config.php
Line: 137
Line: 137 = if (!empty($_POST['httpBL_honeyPot_key']) && (preg_match('/[^a-z]/', $key) || strlen($_POST['httpBL_honeyPot_key']) != 12))

snoopy_virtual

Quote from: giveaway365.com on March 02, 2010, 04:20:22 AM
i uninstall old version and install new? i have 2.2 right now.
I think its the same mistake which I told you 2 - 3 days ago...

The new version is not 2.2 but 2.3.2

Please double check what version you have or contact me when you finish work through Skype and we look at it together.

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: GJSchaller on March 02, 2010, 08:38:27 AM
I went to remove the old verison from my SMF 1.1.11 - the option to remove it is not listed.  It looks like I'll need to manually update it from 2.3 to 2.3.2 - is there anything special I need to do, or can I just write over the older files?

If you want to update from 2.3 to 2.3.2 manually it's very easy, but it it's from 2.2 to 2.3.2 it's completely different.

Please double check exactly what version is the old one you are updating from so I can give yo the exact instructions.

2.2 was the version I released the 17th of February, but 2.3 is the version I released just yesterday.

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.

GJSchaller

I have 2.3 installed already.  As soon as I saw the update last night, I danced about in joy, then installed it. ;)  You did an EXCELLENT job, thank you!

So 2.3 is installed, I just can't remove it to install 2.3.2.
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

snoopy_virtual

Quote from: giveaway365.com on March 02, 2010, 09:48:39 AM
In the new version I get the below error:
8: Undefined index: search_engine
File: /home/content/x/x/x/xxx/html/Sources/httpBL_Subs.php
Line: 611
Line:611 =    if (!$values['search_engine'] && $values['ip'] != '127.1.80.1')

I see.

I will sort this in a future version, but it's not very urgent.

Anyway you can sort it yourself manually:

Open your httpBL_Subs.php and find the line:


if (!$values['search_engine'] && $values['ip'] != '127.1.80.1')


Should be around line 611 more or less  ;)

Change it to:


if ((!isset($values['search_engine']) || $values['search_engine'] == 0 || $values['search_engine'] == '') && $values['ip'] != '127.1.80.1')

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: GJSchaller on March 02, 2010, 11:23:13 AM
I have 2.3 installed already.  As soon as I saw the update last night, I danced about in joy, then installed it. ;)  You did an EXCELLENT job, thank you!

So 2.3 is installed, I just can't remove it to install 2.3.2.

I see, it was you.

I new just 3 people had downloaded version 2.3 yesterday and I already new 2 of them.  ;)

OK, then it's very easy.

Upload just the new files httpBL_Config.php and httpBL_Subs.php into your Sources folder.

Then, also inside that folder look for your Load.php file and look for the lines:


// Before we do anything else with this user we check projecthoneypot to see if it's a spammer. MOD httpBL
// But do it only if we are not coming from the file warning.php
global $sourcedir, $boardurl, $httpBL_warning;
if ($modSettings['httpBL_enable'] && !isset($httpBL_warning))
{
require_once($sourcedir . '/httpBL_Subs.php');
$response = httpBL_dnslookup($user_info['ip'], $modSettings['httpBL_honeyPot_key']);
if ($response && ((isset($response['last_activity']) && (int)$response['last_activity'] <= (int)$modSettings['httpBL_bad_last_activity'] && isset($response['threat']) && (int)$response['threat'] >= (int)$modSettings['httpBL_bad_threat'] && (int)$response['type'] != 0 && !$user_info['is_admin']) || $response['ip'] == ''))
{
$_SESSION['response'] = $response;
header('Location: '. $boardurl .'/warning.php');
exit();
}
}


Change them to:


// Before we do anything else with this user we check projecthoneypot to see if it's a spammer. MOD httpBL
// But do it only if we are not coming from the file warning.php
global $sourcedir, $boardurl, $httpBL_warning;
if ($modSettings['httpBL_enable'] && !isset($httpBL_warning))
{
require_once($sourcedir . '/httpBL_Subs.php');
$response = httpBL_dnslookup($user_info['ip'], $modSettings['httpBL_honeyPot_key']);
if ($response && ((isset($response['last_activity']) && (int)$response['last_activity'] <= (int)$modSettings['httpBL_bad_last_activity'] && isset($response['threat']) && (int)$response['threat'] >= (int)$modSettings['httpBL_bad_threat'] && (int)$response['type'] != 0) || $response['ip'] == ''))
{
$_SESSION['response'] = $response;
header('Location: '. $boardurl .'/warning.php');
exit();
}
}


And that's 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.

the epic winner

#106
Hi, I tried installing this, but when I do, the following appears on my webpage.

/ MOD httpBL START // General $txt['httpBL_title'] = 'MOD httpBL'; $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_honeyPot_key_error_2'] = 'Connection failed. This either means that your http:BL API key is incorrect or that there is a problem in your DNS system.'; $txt['httpBL_caught'] = 'Spammers stopped by MOD httpBL: '; // Config page $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.
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 www.projecthoneypot.org 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:
http://www.yourwebsite.com/yourhoneypot.php'; $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 www.projecthoneypot.org 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 warning.php, 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 [email protected] the first word is info, the second one yourwebsite, and the third one com.'; $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 lower than the number you put here will pass without even been checked.'; $txt['httpBL_very_bad_threat'] = 'Threat level considered VERY bad'; $txt['httpBL_very_bad_threat_sub'] = 'Every IP with a threat level greater than the number you put here won\'t be able to pass at all. The IPs with a threat level between both numbers will see a captcha and, if they prove they are humans, they will be granted a pass for a few hours.'; $txt['httpBL_cookie_length'] = 'Hours until an IP needs to prove again it\'s human'; $txt['httpBL_cookie_length_sub'] = 'As the IPs change very often, when the visitors see the captcha and prove they are human they are allowed inside the page only for this amount of hours. After that the IP may be coming from a different computer. We wouldn\'t recommend you to change these last 4 values until you know the way the mod works.'; $txt['httpBL_no_negative_here'] = 'The number of days and the threat level cannot be negative numbers or 0.'; $txt['httpBL_no_higher_than'] = 'The threat level considered bad cannot be higher than the threat level considered VERY bad.'; $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 that page and you don\'t know how, or if you have any other question about the MOD, you can ask for help in the official support forum or try to find more information reading the tutorial.'; // View log page $txt['httpBL_viewlog'] = 'httpBL Spammers 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. This is the list of spammers stopped by the mod either because their threat level was higher than the threat level considered VERY bad or because they saw the captcha and couldn\'t prove they were humans.'; $txt['httpBL_viewlogpass'] = 'httpBL Humans Log'; $txt['httpBL_viewlogpass_description'] = 'This is the list of the humans stopped by the mod but allowed in after they have proved they were not robots.'; $txt['httpBL_viewlogerror'] = 'httpBL Errors Log'; $txt['httpBL_viewlogerror_description'] = 'This is the list of the internal errors detected by the mod when trying to check an IP. Depending on the error, some of them may have been stopped and others may have been allowed in. To see all the information here you need to press the button "Show extra information".'; $txt['httpBL_log_no_entries'] = 'There are no entries in the MOD httpBL Spammers Log. Either you haven\'t caught any spammer yet or you have erased all the entries.'; $txt['httpBL_logpass_no_entries'] = 'There are no entries in the MOD httpBL Humans Log. Either nobody have proved to be human yet or you have erased all the entries.'; $txt['httpBL_logerror_no_entries'] = 'There are no entries in the MOD httpBL Errors Log. Either you haven\'t got any errors yet or you have erased all the entries.'; $txt['httpBL_viewlog_extra'] = 'Show extra information'; $txt['httpBL_viewlog_normal'] = 'Hide extra information'; $txt['httpBL_log_show_legend'] = 'Show legend'; $txt['httpBL_log_hide_legend'] = 'Hide legend'; $txt['httpBL_pages'] = 'Pages'; $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 something 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'; $txt['httpBL_log_error_message'] = 'Message'; $txt['httpBL_yes'] = 'Yes'; $txt['httpBL_threat_colors'] = 'Meaning of colors:'; $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_log_remove_all_confirm'] = 'Are you sure you want to delete all MOD httpBL log entries? - Please notice this action will delete not only the entries in this section, but ALL THE ENTRIES IN THE LOG.'; $txt['httpBL_log_remove_selected_confirm'] = 'Are you sure you want to delete all selected MOD httpBL log entries?'; // Errors $txt['httpBL_log_no_error'] = 'No error'; $txt['httpBL_no_errorNumber'] = 'There is no error number'; $txt['httpBL_no_defined'] = 'No defined yet'; $txt['httpBL_answers_captcha'] = 'Answers on the captcha'; $txt['httpBL_answer_captcha'] = 'Answer on the captcha'; $txt['httpBL_good'] = 'Good'; $txt['httpBL_bad'] = 'Bad'; $txt['httpBL_empty_ip'] = 'Empty IP'; $txt['httpBL_wrote_hidding'] = 'Wrote on a hidding place'; $txt['httpBL_no_show_captcha'] = 'Th. L. too high. Didn\'t show the captcha'; $txt['httpBL_no_reverse_ip'] = 'Cannot check. IP not normal. Allowed to pass'; $txt['httpBL_log_key_error'] = 'Cannot check due to API key error. Allowed to pass'; $txt['httpBL_no_127'] = 'Cannot check. response[raw] doesn\'t start by 127. Allowed to pass'; $txt['httpBL_unknown'] = 'unknown'; // MOD httpBL END


Why is it appearing on the webpage and not being executed? I'm using the latest version of SMF.

snoopy_virtual

When you say you are using the latest version of SMF which one you mean, 1.1.11 or 2.0?

When you installed it with your Package manager what exact message you saw on the screen?

Was it saying something like this:

Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Load.php    Test successful
...
etc
6.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
...
etc

With all the lines ending either in "Test successful" or "Skipping file" and none of them ending in "Error whatever"?

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

Some people are still reporting errors in this version 2.3.2.

I don't think these errors are too important, as they just appears inside your "Forum Error Log" but they are not making the mod stop working or SMF crashing or something like that.

Anyway they are errors and need to be fixed, so I'm looking into it and I hope they will be fixed soon, but in the mean time I have uploaded again the old version 2.2 so if you see any of those errors you can go back to version 2.2 (if you want) and wait until I sort this issue or continue with version 2.3.2 and report here the particular errors you see to help me finding them.

Thanks, and sorry for any inconvenience.

Snoopy




@the epic winner

I asked you a few questions 7 hours ago trying to help you installing the mod and I can see you haven't answered yet.

Have you already managed to install the mod or you haven't answered because you haven't seen the questions yet?

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.

GJSchaller

I'm good to go - thank you!
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

giveaway365.com

Snoopy sir,
Can you upload your latest version in yr private servers so that we can test it.
I will completely remove httpbl and reinstall it from your server and check it.

snoopy_virtual

Quote from: giveaway365.com on March 03, 2010, 12:26:30 AM
Snoopy sir,
Can you upload your latest version in yr private servers so that we can test it.
I will completely remove httpbl and reinstall it from your server and check it.

It is there. I always put there everything I do so other developers can help me inside mi section "For Developers Only":

http://www.snoopyvirtualstudio.com/foro/index.php?topic=314

If you are going to test it read first the explanation:

http://www.snoopyvirtualstudio.com/foro/index.php?topic=314.msg1374#msg1374


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.

giveaway365.com

there seems some problem i get internal error 500 on yr website

snoopy_virtual

Quote from: giveaway365.com on March 03, 2010, 09:10:19 AM
there seems some problem i get internal error 500 on yr website

It must be something wrong from your computer.

I have been all day opening my site to do tests and butchs and me have been also writing what we find inside the developer's forum.

Last answer there from butchs was just a minute ago.

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.

giveaway365.com

500 - Internal Server Error
This is a temporary server error.
Please try to reload the webpage later.If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.

Common reasons for this error are:

•Incorrect file/directory permissions: Above 755. In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.
•Incorrect Apache directives inside .htaccess file. Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings.
Resources: Tutorials  Video Tutorials  Web hosting FAQ  Joomla templates  WordPress themes  Web hosting forum  Website Design
Quick links: eCommerce hosting  Joomla hosting  Magento hosting  phpBB hosting  WordPress hosting  cPanel hosting  FTP hosting  Flash hosting Copyright © 2009 SiteGround.com Inc

giveaway365.com

ok i got to go in yr site...
i have not tested 2.3.3

but i tried the code u gave below.... but the error of line 611 and 137 still exists..

should I try 2.3.3 from yr server?

snoopy_virtual

Quote from: giveaway365.com on March 03, 2010, 10:41:21 AM
ok i got to go in yr site...
i have not tested 2.3.3

but i tried the code u gave below.... but the error of line 611 and 137 still exists..

should I try 2.3.3 from yr server?

No

It has a big mistake and that's why you got the 500 error

I'm doing a new developers version

But to talk about developers versions, please do it in the proper forum, not here.

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.

giveaway365.com

ok,,, I have installed yr 2.3.2 version as it is available on smf server,,,, ket us know once you have yr developer version ready ! or pm me when it is ready to test

snoopy_virtual

Quote from: giveaway365.com on March 03, 2010, 11:39:12 AM
ok,,, I have installed yr 2.3.2 version as it is available on smf server,,,, ket us know once you have yr developer version ready ! or pm me when it is ready to test

All the info about the developers versions is in the developers mod.

I am updating it every 5 minutes or so (everytime I do something new) so you can read it there.

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

Snoopy does not sleep.   :o
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Advertisement: