News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

httpBL

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

Previous topic - Next topic

Shades.

Quote from: shadav on December 31, 2020, 12:29:41 PM
Quote from: Aleksi "Lex" Kilpinen on December 31, 2020, 12:17:08 PM
Congrats, and I'm so sorry at the same time :P
eh well simple enough to disable ipv6 on my computer  ;D and I'm back up and running again...

hm, but this could be a problem for my users...hm.....well about that....may still need to remove this mod anyways if others who use ipv6 can't access the site, that's gonna be an issue
I just tested my connection at testmyipv6.com and it says Im on this ipv6. I'm also using this mod on several of my sites and have had no issues myself. I hope this wont be a problem.  :o 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Aleksi "Lex" Kilpinen

Could also be a different version of the mod, or something else differing - but based on the error I saw, the DB field for IP in shadav's install couldn't hold an IPv6 address because of it's length.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

shadav

here's where Lex is talking about

after a day of my site being down...I thought it was my host at first but then turns out it wasn't....for me I was seeing database error message but for everoyne else the site was fine....
after checking error logs httpbl was the one giving issues...which again is strange as it hadn't ever popped up before

https://www.simplemachines.org/community/index.php?topic=576208.0

after fixing the default to null, the last error that showed up was

Database Error: Data too long for column 'ip' at row 1<br /><br /><br />         INSERT INTO smf_log_httpBL(`logTime`, `ip`, `threat`, `last_activity`, `suspicious`, `harvester`, `comment`, `url`, `user_agent`, `errorNumber`, `username`, `raw`, `stopped`)<br />         VALUES<br />            (1609402130, '2601:805:8204:1430:7415:e9a:1fa1:68ab', 0, 0, 0, 0, 0, '/index.php?action=enotify', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', 200, 'Guest', 'unknown', 2)

SD-X

Quote from: shadav on December 31, 2020, 03:24:57 PM
Database Error: Data too long for column 'ip' at row 1<br /><br /><br />         INSERT INTO smf_log_httpBL(`logTime`, `ip`, `threat`, `last_activity`, `suspicious`, `harvester`, `comment`, `url`, `user_agent`, `errorNumber`, `username`, `raw`, `stopped`)<br />         VALUES<br />            (1609402130, '2601:805:8204:1430:7415:e9a:1fa1:68ab', 0, 0, 0, 0, 0, '/index.php?action=enotify', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', 200, 'Guest', 'unknown', 2)
That's likely because SMF 2.0.x is designed to store IPv4 addresses only, which are a specific length. IPv6 support was officially added in SMF 2.1.x, however this mod sadly has not been updated to support those versions yet. :(

spiros

I just upgraded  to smf 2.0.18 and php 7.4  and I get multiple errors in error log:

8: Trying to access array offset on value of type null
/home/translat/public_html/forum/Sources/httpBL_Subs.php
Line 674
$values['raw'] = $txt['httpBL_unknown'];
Line: 672
$values['username'] = $user_info['is_guest'] ? $txt['guest'] : $user_info['username'];

Kolya

I'm also on smf 2.0.18. I don't get any errors, possibly because I disabled all the translation stuff long ago.
But the mod is clearly not working either. HttpBL's spammers log just lists a lot of IPv6 addresses, without any further information besides "Guest" in the User column.
I've disabled this mod for now.

spiros

#1366
Yes, I had to disable it until a fix is provided -:)
Pity, because it is a good mod.
Nice theme in your site by the way, which one is it?

SD-X

Your issue is probably because of the same problem others are having:

Quote from: SugarD-x on January 03, 2021, 10:34:32 AM
That's likely because SMF 2.0.x is designed to store IPv4 addresses only, which are a specific length. IPv6 support was officially added in SMF 2.1.x, however this mod sadly has not been updated to support those versions yet. :(

Kolya

Quote from: spiros on February 07, 2021, 06:52:33 AM
Nice theme in your site by the way, which one is it?
Thanks, it is self-created. Worked on it for some 15 years and became a frontend-dev over that.

riou

#1369
Quote from: spiros on February 02, 2021, 08:31:58 AM
I just upgraded  to smf 2.0.18 and php 7.4  and I get multiple errors in error log:

8: Trying to access array offset on value of type null
/home/translat/public_html/forum/Sources/httpBL_Subs.php
Line 674
$values['raw'] = $txt['httpBL_unknown'];
Line: 672
$values['username'] = $user_info['is_guest'] ? $txt['guest'] : $user_info['username'];



it seems the problem is that it doesn't find values for those $txt things if you replace $txt['guest'] with "guest" and $txt['httpBL_unknown'] with "unknown" (what they match in the english mod language file) it will make it stop erroring, not sure why it isn't picking it up from the language files anymore, not sure if more of the $txt's will have to do this too or not for now

Shades.

Quote from: Shades. on October 09, 2020, 06:30:50 PM
I have this installed and working fine on several 2.0.17 sites but on one site I try to install it and get the following:
Table 'mysite_xxxx.bh_log_httpBL' doesn't exist
File: /home2/mysite/public_html/xxxx/Packages/temp/install_2.php
Line: 68


Do i need to create that table and if so how or what is the query?
Just installed it on a fresh 2.0.18 install and it works fine but still cant get it to install on the site in quotes because the table doesnt exist. Any help on this please?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

shawnb61

Quote from: shadav on September 09, 2019, 03:00:18 PM
Too few arguments to function httpBL_look_for_empty_ip(), 0 passed in /sources/httpBL_Subs.php on line 680 and exactly 1 expected on line 680
$ip = httpBL_look_for_empty_ip();

I believe this is a php7.1+ issue.  The function has a required parameter, not passed on line 680.  Prior to php7.1, this was a warning, not an error.  In 7.1, it was promoted to an error. 

I'm seeing this error occasionally with ipv4. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

landyvlad

I've asked a general question elsewhere - but is there any chance of a 2.1 version being developed for this mod?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

SD-X

Quote from: landyvlad on July 13, 2021, 01:50:56 AM
I've asked a general question elsewhere - but is there any chance of a 2.1 version being developed for this mod?
I'm wondering the same, and hoping the answer is yes. This is desperately needed.

shadav

 :P let's fix the ipv 6 issue first ;)
though seeing as 2.1 has ipv6 support already then hopefully if and when this gets updated for 2.1 that won't be an issue anymore and I can use this mod again

landyvlad

I know I last asked in July but we are a few months along now.
Just wondering if any plans for this to be updated to be 2.1.x compatible? 
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

Trying to reinstall this now I have upgraded to 2.0.18 and am getting a fail.

6.   Execute Modification   ./Themes/default/Who.template.php   Test failed
   1.   Add Before   ./Themes/default/Who.template.php   Test successful
   2.   Add Before   ./Themes/default/Who.template.php   Test failed

I read the readme files and it also suggests installing this mod is necessary:
https://custom.simplemachines.org/index.php?mod=1515

I've tried installing httpBL both with and without that mod installed first but get the same error.

Any suggestions?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

This is the portion which is failing.

QuoteCode: (Find) [Select]
        echo '
                            </td>
                            <td nowrap="nowrap">', $member['time'], '</td>
Code: (Add Before) [Select]
            // OS & Browser Detection
            // Parse the user agent only if OS & Browser Detection is installed and enabled
            if ($os_browser_exists)
                $os_browser_detected = parse_user_agent($member['query']['USER_AGENT']);
            // Display only if allowed
            if (allowedTo('view_os_browser') && $os_browser_exists){
                if ($os_browser_detected['system'] || $os_browser_detected['browser']){ //Do not display if both are unknown
                    echo '<br />';
                    if ($os_browser_detected['system']) {
                        echo '
                                    <strong>', $txt['OS_Browser_OS'], ':</strong>
                                    <br /><img src="', $settings['default_images_url'], '/os_browser_detection/icon_', $os_browser_detected['system_icon'], '.png" align="top" alt="', $os_browser_detected['system'], '" /> ', $os_browser_detected['system'], '<br />';
                    } else {
                        echo '
                                    <strong>', $txt['OS_Browser_OS'], ':</strong>
                                    <br /><img src="', $settings['default_images_url'], '/os_browser_detection/icon_unknown.png" align="top" alt="', $txt['OS_Browser_Unknown'], '" /> ', $txt['OS_Browser_Unknown'], '<br />';
                    }
                   
                    if ($os_browser_detected['browser']) {
                        echo '
                                    <strong>', $txt['OS_Browser_Browser'], ':</strong>
                                    <br /><img src="', $settings['default_images_url'], '/os_browser_detection/icon_', $os_browser_detected['browser_icon'], '.png" align="top" alt="', $os_browser_detected['browser'], '" /> ', $os_browser_detected['browser'];
                    } else {
                        echo '
                                    <strong>', $txt['OS_Browser_Browser'], ':</strong>
                                    <br /><img src="', $settings['default_images_url'], '/os_browser_detection/icon_unknown.png" align="top" alt="', $txt['OS_Browser_Unknown'], '" /> ', $txt['OS_Browser_Unknown'];
                    }
               
                }
            }

File copy attached hoping someone can diagnose please :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

shadav

;) you've installed the responsive curve  :P

in the install find
        echo '
                            </td>
                            <td nowrap="nowrap">', $member['time'], '</td>
replace
        echo '
                            </td>
                            <td nowrap="nowrap" class="hidden">', $member['time'], '</td>

keep in mind though with this mod, those who use ipv6 will be blocked from accessing your forum (including you if you use ipv6 and not ipv4)
though I think there is a mod or tip somewhere about adding ipv6 support for 2.0.x

landyvlad

Yes I am running that mod and it already has that code in it

echo '
                            </td>
                            <td nowrap="nowrap" class="hidden">', $member['time'], '</td>
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: