Forums / Addon Admin Tools / Access Blocker Support Thread

Access Blocker Support Thread

Views: 53,254

Results 101 to 120 of 133
3 Jul 2025, 1:47 PM
#101
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Access Blocker Support Thread

Zen Cart 2.1.0
Php Version: 8.3.20

@lat9 thanks for the quick debug fix which I applied.
I noticed last night in admin/ configuration/ access blocker setting that the sort order was different from my prior Version 1.5.2 so I looked into the data base to double check the sort_order the ScriptedInstaller.php loads. Every sort_order have this number: 2147483647 for the new 13 VALUES in the database.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

3 Jul 2025, 2:46 PM
#102
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

haredo:

Zen Cart 2.1.0
Php Version: 8.3.20

@lat9 thanks for the quick debug fix which I applied.
I noticed last night in admin/ configuration/ access blocker setting that the sort order was different from my prior Version 1.5.2 so I looked into the data base to double check the sort_order the ScriptedInstaller.php loads. Every sort_order have this number: 2147483647 for the new 13 VALUES in the database.
Sigh, did you ever have one of those days?

I'll get this captured on GitHub later, but you can change the version's /Installer/ScriptedInstaller.php, line 30, from

                (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, [B]sort_order, date_added[/B], use_function, set_function)

to

                (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, [B]date_added, sort_order[/B], use_function, set_function)
3 Jul 2025, 2:58 PM
#103
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Access Blocker Support Thread

Sign,
YES, many: Welcome to my world ...
Work time for me at this gig, will make change when arrive home tonight after this musical festival here in Milwaukee, WI

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

3 Jul 2025, 5:30 PM
#104
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: Access Blocker Support Thread

Thank you for all your work!

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

17 Sep 2025, 12:43 AM
#105
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: Access Blocker Support Thread

I keep getting hammered on a daily basis.

"Next Illuminate\Database\QueryException: SQLSTATE[HY000] [1226] User 'o12804405' has exceeded the 'max_user_connections' resource (current value: 20) (SQL: select * from zencrt_plugin_control where (status = 1) order by name asc, unique_key asc) in /laravel/vendor/illuminate/database/Connection.php:760"

I'm still trying to figure out if all these are actually coming from people abusing the site or if I have an issue with my actual database. Full disclosure, this is on a beta site that I update with the latest changes on ZC GitHub. That aside, there is a tooltip that says adding an ip with just the first 2 subsets will block an entire range.

" If you enter only the upper segments of an IP address, e.g. 192.168.1., all matching IP addresses, e.g. 192.168.1.0-192.168.1.255 will be blocked."

I have tried this by just adding 34.174. but I continue to see a new address daily from that range that I then need to specifically block (34.174.234.230) am I doing something wrong? Do I need to add 3 sets 34.174.1. ?

Thank you in advance.

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

17 Sep 2025, 12:47 PM
#106
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

Bubbadood:

I keep getting hammered on a daily basis.

"Next Illuminate\Database\QueryException: SQLSTATE[HY000] [1226] User 'o12804405' has exceeded the 'max_user_connections' resource (current value: 20) (SQL: select * from zencrt_plugin_control where (status = 1) order by name asc, unique_key asc) in /laravel/vendor/illuminate/database/Connection.php:760"

I'm still trying to figure out if all these are actually coming from people abusing the site or if I have an issue with my actual database. Full disclosure, this is on a beta site that I update with the latest changes on ZC GitHub. That aside, there is a tooltip that says adding an ip with just the first 2 subsets will block an entire range.

" If you enter only the upper segments of an IP address, e.g. 192.168.1., all matching IP addresses, e.g. 192.168.1.0-192.168.1.255 will be blocked."

I have tried this by just adding 34.174. but I continue to see a new address daily from that range that I then need to specifically block (34.174.234.230) am I doing something wrong? Do I need to add 3 sets 34.174.1. ?

Thank you in advance.
Setting a to-be-blocked IP address of 34.174. should do the trick, preventing that address from creating accounts, sending contact-us email and the like.

What Access Blocker doesn't do is fully limit the selected IP addresses; that's what IP blocking in the site's .htaccess file is for.

17 Sep 2025, 4:11 PM
#107
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: Access Blocker Support Thread

Thank you for the clarification.

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

15 Nov 2025, 8:16 PM
#108
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Access Blocker Support Thread

Hi Cindy - I am trying out version 1.5.2 (since I am still running zc1.5.8a). I notice that even though the plugin has been enabled for 30 minutes, I am seeing a spike in the ipdata dashboard. Would this be because we had the "Totally restrict access on threats?" set to true?

If so, that initial usage threshold of 1,500 is going to be used up within an hour! See image screenshot below.

Attachment 21082

  • Jeff
17 Nov 2025, 1:16 PM
#109
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

Jeff_Mash:

Hi Cindy - I am trying out version 1.5.2 (since I am still running zc1.5.8a). I notice that even though the plugin has been enabled for 30 minutes, I am seeing a spike in the ipdata dashboard. Would this be because we had the "Totally restrict access on threats?" set to true?

If so, that initial usage threshold of 1,500 is going to be used up within an hour! See image screenshot below.

Attachment 21082
Yes, if "Totally restrict access" is enabled then every page access is checked and, if the access is associated with a threat, the session's closed so there's no record of it having been a threat if accessed again.

17 Nov 2025, 6:45 PM
#110
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Access Blocker Support Thread

lat9:

Yes, if "Totally restrict access" is enabled then every page access is checked and, if the access is associated with a threat, the session's closed so there's no record of it having been a threat if accessed again.

Thanks! So I just turned off the "Totally restrict access." Am I correct in understanding that if I see any usage on the ipdata website, that represents actual form submissions that were blocked (on the ccontact_us, ask_a_question, create_account, guest checkout and login pages)? Or are those hits just ANY submission of those forms, and not necessarily a threat?

I ask because our site can get pretty busy (with spiders, bots, or just customers) and I see that ipdata steadily rising 1-2 points a minute. Trying to know if the data I'm seeing represents actual threats blocked or just lookups.

  • Jeff
17 Nov 2025, 11:53 PM
#111
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

Jeff_Mash:

Thanks! So I just turned off the "Totally restrict access." Am I correct in understanding that if I see any usage on the ipdata website, that represents actual form submissions that were blocked (on the ccontact_us, ask_a_question, create_account, guest checkout and login pages)? Or are those hits just ANY submission of those forms, and not necessarily a threat?

I ask because our site can get pretty busy (with spiders, bots, or just customers) and I see that ipdata steadily rising 1-2 points a minute. Trying to know if the data I'm seeing represents actual threats blocked or just lookups.
Without totally restricting access, the hits will be for the pages you identified and the IP address is saved in the session, so it's only one 'hit' per session.

24 Nov 2025, 7:04 PM
#112
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Access Blocker Support Thread

Cindy - I wanted to ADD something to the script, and I'm wondering what I may be doing wrong.

The script is working great, but we have another module (the AJAX FAQ Module [https://www.zen-cart.com/downloads.php?do=file&id=1757] which lets us publish answered Questions to the product info page). This is really helpful for customers to see other asked questions without submitting the same thing over and over to us.

ANYWAY - I want to filter that AJAX FAQ form through the Access Blocker as well so that it blocks any banned IP address from submitting spam.

I tried to do this but it wasn't working:

In auto.access_blocker.php:

I added this:

$this->attach(
                $this, 
                [
                    'NOTIFY_FAQ_QUESTION',  // <------- I ADDED THIS NOTIFIER WHICH I CREATED IN THE FAQ Module constructor
                    'NOTIFY_CONTACT_US_CAPTCHA_CHECK',
                    'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK',
                    'NOTIFY_PROCESS_3RD_PARTY_LOGINS',
                    'NOTIFY_OPC_GUEST_CHECKOUT_OVERRIDE',
                    'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK',
                ]
            )

I then copied and pasted this CASE block into the auto.access_blocker.php:

case 'NOTIFY_FAQ_QUESTION':
                // -----
                // If either the 'email' or 'enquiry' posted via the form is empty, perform a "quick return"
                // (to prevent PHP notices generated for those 'missing' values); the base header_php.php will
                // kick the request back.
                //
                if (empty($_POST['email_address']) ) {
                    return;
                }

                if (!$this->isEmailWhitelisted($_POST['email_address']) && ($this->isEmailAddressBlocked($_POST['email_address']))) {
                    $this->logBlockedAccesses('FAQ Question Submit', $_POST['email_address']);
                    $this->denyIfThreatAccessRestricted();

                    zen_redirect(zen_href_link(FILENAME_CONTACT_US, 'action=success', 'SSL'));
                }
                break;

That is basically the same code you have for blocking the Contact Us page, except the form field for email is different because this is how the email address field is labeled with that plugin:

<input class="form-control" type="text" name="email_address" size="50" placeholder="Please enter your email address">

Anyway, I did all that, and then added my email address to the Access Blocker's BLACKLIST, and submitted the form using my blocked email. However, the email was still delivered.

Am I missing something on how to extend the plugin to cover this form?

  • Jeff
25 Nov 2025, 12:40 PM
#113
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

Jeff, that NOTIFY_FAQ_QUESTION notification should be placed at a point where the FAQ form has been submitted so that $_POST['email_address'] is available for checking. Placing that notification in the class constructor is probably too soon.

5 Feb 2026, 11:05 PM
#114
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Access Blocker Support Thread

Hi....

I'm using an older version of Access Blocker (v1.4.0), and I see that the latest version is (v1.5.2)

My questions are....

  1. Are there major differences between the old & new?
  2. Do I need to update to the latest, or is the older version fine?
  3. If I should update, what is the easiest way to do that?

My Zen is (v1.5.7c)

Thanks.....

6 Feb 2026, 12:57 PM
#115
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

zapme1:

Hi....

I'm using an older version of Access Blocker (v1.4.0), and I see that the latest version is (v1.5.2)

My questions are....

  1. Are there major differences between the old & new?
  2. Do I need to update to the latest, or is the older version fine?
  3. If I should update, what is the easiest way to do that?

My Zen is (v1.5.7c)

Thanks.....
The version-specific changes are well documented in the plugin's readme.html file as well as the update instructions.

6 Feb 2026, 2:08 PM
#116
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Access Blocker Support Thread

Thanks lat9, I appreciate it....

23 Feb 2026, 7:40 PM
#117
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: Access Blocker Support Thread

ZC 2.1
PHP 8.3

access_blocker-2.0.1
customer_tax_exempt_2.0.2
edit_orders-5.0.2
paypalr-1.3.0
sales_report-4.0.2
sitemapxml-4.0.4
USPSRestful_v1_7_0
zen_Image-Handler-5.3.5
zen_TyPackageTracker-5.0.1

I recently installed access blocker and I am getting this debug log fairly consistently

[21-Feb-2026 07:51:06 America/Boise] PHP Fatal error:  Uncaught Error: Undefined constant "ACCESSBLOCK_BLOCKED_COMPANIES" in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php:367
Stack trace:
#0 ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php(107): zcObserverAccessBlocker->isCompanyBlocked()
#1 ****public_html/includes/classes/traits/NotifierManager.php(107): zcObserverAccessBlocker->update(Object(notifier), 'NOTIFY_CREATE_A...', 'lAbNnNIpNg', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#2 ****public_html/includes/modules/create_account.php(46): base->notify('NOTIFY_CREATE_A...', 'lAbNnNIpNg', '')
#3 ****public_html/includes/modules/pages/create_account/header_php.php(16): include('/home2/wildstee...')
#4 ****public_html/index.php(35): require('/home2/wildstee...')
#5 {main}
  thrown in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php on line 367

[21-Feb-2026 07:51:06 America/Boise] Request URI: /index.php?main_page=create_account, IP address: **.**.**.***
--> PHP Fatal error: Uncaught Error: Undefined constant "ACCESSBLOCK_BLOCKED_COMPANIES" in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php:367
Stack trace:
#0 ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php(107): zcObserverAccessBlocker->isCompanyBlocked()
#1 ****public_html/includes/classes/traits/NotifierManager.php(107): zcObserverAccessBlocker->update(Object(notifier), 'NOTIFY_CREATE_A...', 'lAbNnNIpNg', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#2 ****public_html/includes/modules/create_account.php(46): base->notify('NOTIFY_CREATE_A...', 'lAbNnNIpNg', '')
#3 ****public_html/includes/modules/pages/create_account/header_php.php(16): include('/home2/wildstee...')
#4 ****public_html/index.php(35): require('/home2/wildstee...')
#5 {main}
  thrown in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php on line 367.

[21-Feb-2026 07:51:06 America/Boise] Request URI: /index.php?main_page=create_account, IP address: **.**.**.***
--> PHP Fatal error: Uncaught Error: Undefined constant "ACCESSBLOCK_BLOCKED_COMPANIES" in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php:367
Stack trace:
#0 ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php(107): zcObserverAccessBlocker->isCompanyBlocked()
#1 ****public_html/includes/classes/traits/NotifierManager.php(107): zcObserverAccessBlocker->update(Object(notifier), 'NOTIFY_CREATE_A...', 'lAbNnNIpNg', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#2 ****public_html/includes/modules/create_account.php(46): base->notify('NOTIFY_CREATE_A...', 'lAbNnNIpNg', '')
#3 ****public_html/includes/modules/pages/create_account/header_php.php(16): include('/home2/wildstee...')
#4 ****public_html/index.php(35): require('/home2/wildstee...')
#5 {main}
  thrown in ****public_html/zc_plugins/AccessBlocker/v2.0.1/catalog/includes/classes/observers/auto.access_blocker.php on line 367.
24 Feb 2026, 4:47 PM
#118
dan4store avatar

dan4store

New Zenner

Join Date:
Apr 2025
Location:
NC
Posts:
31
Plugin Contributions:
0

Re: Access Blocker Support Thread

I'm just wondering if this will block an AI spammer/hacker
I have 4 to 15 accounts set up everyday and they look like this
Attachment 21180

All the fields are filled in with the same gibberish. It is a hassle to delete them. I'm not sure why/or what they have to gain.
It is always an untraceable source, but seems to come through a server that specializes in AI on their platform, a fair amount of the time, but also comes from all over the world.
Google_reCAPTCHA did not stop it. I'm on zc 1.5.5.e

24 Feb 2026, 6:21 PM
#119
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: Access Blocker Support Thread

Dan4store:

I'm just wondering if this will block an AI spammer/hacker
I have 4 to 15 accounts set up everyday and they look like this
Attachment 21180

All the fields are filled in with the same gibberish. It is a hassle to delete them. I'm not sure why/or what they have to gain.
It is always an untraceable source, but seems to come through a server that specializes in AI on their platform, a fair amount of the time, but also comes from all over the world.
Google_reCAPTCHA did not stop it. I'm on zc 1.5.5.e

That is the same issue we were having. They are probing and sniffing looking for sites that might have value to hack.
I was building a plug in that worked pretty good but I saw this app and was hoping it would take care of the issue.
We got the API key, loaded the plugin and set it up with the API key and that is it.
So far we haven't received any more of the gibberish stuff.
It has been about a week since we installed the plugin.
The only issue we got initially was the logs I described above but I haven't seen any more of those yet so maybe were good.

25 Feb 2026, 5:36 PM
#120
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Access Blocker Support Thread

v2.0.2 of Access Blocker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2237

This release contains changes associated with these GitHub issues:

#28: Correct PHP warning for missing $messageStack during password-forgotten processing.
#29: Restore Block by: Create-account Company setting; erroneously dropped in v2.0.0 update.
#30: Remove unused elements from the plugin's scriptedInstaller.
#31: Correct configuration-key sort orders; erroneously swapped with date_added in v2.0.0 update.