Randem Systems Support Board

BotBanish => BotBanish - General Questions, Report Bugs, Problems etc... => Topic started by: sonnyh on December 04, 2019, 01:42:44 PM

Title: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 04, 2019, 01:42:44 PM
Hi,
I just installed 3.4.03 today.
Everything seems to be working, except Blacklist IPs.
I went to add an IP and receive HTTP ERROR 500 error.
Blacklist Domains and Spiders seem to be working properly
Also, just checked and the Whitelist IPs are presenting the HTTP ERROR 500 error.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 04, 2019, 03:02:40 PM
Aloha Sonny,

When you get a 500 Error, if you could send me the .htaccess file and the details of what process you were doing so that I can check what the issue is.
We are working on version 3.5.00 now and want to eliminate issues that may have presented. I will check the issues you have stated and will issue an update when fixed. Thanks for reporting these issues.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 04, 2019, 10:17:58 PM
sonnyh,

BotBanish 3.4.04 was released to correct some issues that you are having with the blacklist.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 05, 2019, 02:55:47 AM
Good Morning,
Just installed 3.4.04 and issue is resolved.
Do you still want the .htaccess file?
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 05, 2019, 11:02:11 AM
Yes, It would be nice to see other forms of the .htaccess file than the ones that we test with.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 06, 2019, 03:07:03 AM
See attached

Where are the Blacklisted items, Domains, Bots, etc?
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 06, 2019, 10:45:00 AM
The Blacklisted IP's are in the section marked

# * * * * * BotBanish IP Start * * * * *
# * * * * * BotBanish IP End * * * * *

The Blacklisted BOTS are in the section marked

# * * * * * BotBanish BOT Start * * * * *
# * * * * * BotBanish BOT End * * * * *

Domains & URL's are not in the .htaccess file but in a database table.

Your .htaccess file is in an older format. The IP section is supposed to read

<Files *>
<RequireAll>
...
</RequireAll>
</Files>

It was supposed to have been converted. I will use your .htaccess file to find out why it hasn't been.
Mahalo,
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 06, 2019, 10:56:58 AM
Ok,
There are a bunch of Domains, Spiders and IPs that are in the BotBanish dropdown that do not seem to be blocked.
In domains I added .cz and .ru to block all searches from either country, but still get quire a few showing up in the log.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 06, 2019, 11:25:38 AM
.cz and .ru are not domains... a domain would be like r5mars.org not just the .org part.  You can block a series of IP's by using the format xxx.xxx. to block an entire country.
There is an anomaly with your .htaccess file that I am working on. It did not convert properly. I will generate a conversion program that will correct this.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 06, 2019, 12:38:43 PM
Thank you
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 16, 2019, 05:57:53 AM
Good morning,
Were you able to determine what the issue is with the htaccess file?
I am show bots in the log that have already been Blacklisted
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 16, 2019, 07:31:57 AM
Good Morning,

The .htaccess file that you have sent had no bot blocking in it. You may have two .htaccess files and one overrides the other. I have attached a good .htaccess file.

Ex. If SMF is installed in a folder (not the root) and you have an .htaccess file in the folder where you installed SMF, that .htaccess file takes precedent over the one in the root for most non system function. Version 3.5.00 addresses this and adds info to both .htaccess files.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 16, 2019, 02:10:17 PM
Hi, should this file be placed in the root and SMF?
The old file in the SMF was the problem.

Do you want to see either of the old htaccess files?

Thank you
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 16, 2019, 04:14:05 PM
Yes, I want to see your original htaccess file. There is something in your spider blacklist that is causing issues. The .htaccess file that I gave you should be placed in the root and the smf folder to protect both your website and forum.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 16, 2019, 04:58:41 PM
See attached root and smf files
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 16, 2019, 05:23:37 PM
The other .htaccess goes in the root. This one goes in the smf folder.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 16, 2019, 05:25:27 PM
BTW: You are placing domains in the spiders blacklist. This will not work as you wish. Only information from the HTTP_USER_AGENT should be used to block bots.
Take all the domains out of the spiders black / white lists to avoid future issues.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 17, 2019, 02:40:16 AM
Thank you,
The BOTs have been removed from the Botbanish blacklist
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 17, 2019, 08:30:57 AM
I hope you mean domains... Yes?
From your .htaccess files it looks like the BotBanish install did not complete. It does take a while to get everything in it's place. Did you interrupt the install?
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 17, 2019, 11:09:12 AM
Yes, domains.
The installation showed complete, it was not interpreted.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 17, 2019, 11:36:02 AM
Strange, all the information that BotBanish should pull from your tables and place into the .htaccess file were missing... This would generally mean premature termination for some reason. Could you check your php error log if you have access to it? Also check to see if there is a file titled error_log in your root, smf and sources folders.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 18, 2019, 05:30:42 AM
Attached is the PHP Error log
Looks like the errors keep repeating

I did not see any error_log in the root, smf or sources folders.
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 18, 2019, 11:02:16 AM
All those errors are from your NChat MOD. I informed you it was causing issues a while ago... If you look in your SMF error log you will see that a few other MODS have issues also. Mostly "Unidentified index" issues. No BotBanish issues are reported...
Title: Re: 3.4.03 HTTP ERROR 500
Post by: sonnyh on December 19, 2019, 02:28:03 AM
What do you suggest with respect to the NChat MOD?
Title: Re: 3.4.03 HTTP ERROR 500
Post by: Randem on December 19, 2019, 11:43:05 AM
You will either have to contact the MOD authors to see if they will correct the issues or have updates that correct them, correct them on your own or find a MOD that does not have these issues..