Zen Cart JerkblockerThe Jerkblocker mod provides a number of ways for you to block unwanted account registrations and contact us emails. If you are sick of getting spam from Russian trolls, Jerkblocker can help!
Relevance: Zen Cart™ 1.5.5 and above
Current Version: 1.0 (version history)
Cost: This software is free, you pay only for installation at my normal hourly rate. However, it is available to my support clients only. (Why?)
If you'd like this software, just go on support with me.
Overview:Jerkblocker checks new account registration data against a series of rules you set. If an account's settings violate these rules, the registration is blocked. It also checks the body of contact us emails.
Some of the rules that Jerkblocker enforces may not make sense for your store; if this is the case, you may simply remove them. Jerkblocker is optimized for US based businesses which serve customers primarily in the United States.
Settings:The settings for Jerkblocker are all contained in
includes/classes/observers/class.jerkblocker.php. Search this file for the phrase
Jerk Blockand you will see the following checks for account registrations:
// Jerk Block: block specific company names
You can enter a list of company names here. Example:
$bad_company_list = array('google');
// Jerk Block: block specific email domains
You can enter a list of email domains here. Example:
$bad_domain_list = array("yandex.com","mail.ru", "qq.com");
// Jerk Block: block specific country based emails
You can enter a list of countries here. Email domains which end with these country codes will be blocked. For example, email@example.com would be blocked if you added "cn" to the list. Example:
$bad_domain_country_list = array("ru","cn");
// Jerk Block: multibyte characters not allowed
Use this if you don't want registrations in multibyte character sets.
Note: Blocking multibyte may not be desirable if you have customers registering with multibyte names (using characters like umlaut, accent, etc.), such as "Jørgen" or "Längert".
// Jerk Block: Cyrillic not allowed
Use this if you don't want registrations from Russia.
// Jerk Block: bad words
Use this to list any bad word that indicates the email is spam. Both the subject and the body of the email are checked.
- Back up everything! Try this in a test environment prior to installing it on a live shop.
- Copy the contents of the unzipped folder to the root directory of your shop.
includes/classes/observers/class.jerkblocker.phpas described above to achieve your desired blocking results.
- Optional: Modify
includes/languages/english/extra_definitions/jerkblocker.phpto change the error message. For example, you could invite customers to call your office to have an account created.
- 1.0 09/12/2019 - First Release