Title: Block Specific Spam Woo Orders
Author: wigster
Published: <strong>4. november, 2020</strong>
Last modified: 2. juni, 2026

---

Søg plugins

![](https://ps.w.org/block-specific-spam-woo-orders/assets/banner-772x250.png?rev
=2412418)

![](https://ps.w.org/block-specific-spam-woo-orders/assets/icon-256x256.png?rev=
2412418)

# Block Specific Spam Woo Orders

 Af [wigster](https://profiles.wordpress.org/wigster/)

[Download](https://downloads.wordpress.org/plugin/block-specific-spam-woo-orders.0.80.zip)

 * [Detaljer](https://da.wordpress.org/plugins/block-specific-spam-woo-orders/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/block-specific-spam-woo-orders/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/block-specific-spam-woo-orders/#developers)

 [Support](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/)

## Beskrivelse

This plugin prevents a specific set of WooCommerce fake/spam orders.
 Simply install
and activate the plugin; there are no settings or tweaks to be made unless you want
to add your own filters. The plugin extends WooCommerce’s built-in checkout validations
to check for a specific set of known spam email accounts and names. If triggered,
the spam bot simply cannot checkout and importantly does not get to the account 
creation stage. The names/emails it checks for would only be used by spam bots, 
so there is no need to worry about false positives.

If you’ve found this plugin useful, you can support my work by buying me a coffee
at:
 [Buy Me a Coffee](https://buymeacoffee.com/alexwigmore).

### How to Use Custom Filters

Starting from plugin version 0.77, you can extend the list of blocked email domains
and blocked customer names using custom filters.

### Available Filters:

 1. **BSSO_extra_domains:** Add custom email domains to block during the checkout process.
 2. **BSSO_extra_names:** Add custom first names to block during the checkout process.

### Example Usage

To use these filters, add code to your theme’s `functions.php` file or a custom 
plugin.

#### 1. Blocking Additional Email Domains

If you want to block additional email domains like `exampledomain.com` and `spamdomain.
net`, use the `BSSO_extra_domains` filter. Domains can be supplied with or without
a leading `@`.

**Code Example:**

    ```
    add_filter('BSSO_extra_domains', function () {
        return ['exampledomain.com', 'spamdomain.net'];
    });
    ```

#### 2. Blocking Additional First Names

If you want to block additional first names like `spambot` and `faker`, use the `
BSSO_extra_names` filter.

**Code Example:**

    ```
    add_filter('BSSO_extra_names', function () {
        return ['spambot', 'faker'];
    });
    ```

### Complete Example

Here’s how you might use both filters together:

**Code Example:**

    ```
    add_filter('BSSO_extra_domains', function () {
        return ['exampledomain.com', 'spamdomain.net'];
    });

    add_filter('BSSO_extra_names', function () {
        return ['spambot', 'faker'];
    });
    ```

## FAQ

### Will you keep this plugin updated?

Yes, where possible, I will try my best to add additional checks if the attack vectors
change.

## Anmeldelser

![](https://secure.gravatar.com/avatar/e48271a8d83a0b66e303b910f233d97d6c9a3ef289ebbc87389ce4463743d234?
s=60&d=retro&r=g)

### 󠀁[simple wonderful plugin, great support, and extensible](https://wordpress.org/support/topic/simple-wonderful-plugin-great-support-and-extensible/)󠁿

 [James Revillini](https://profiles.wordpress.org/jrevillini/) 4. september, 2024

I love this plugin and the ability to add additional problem bot names and domains
has solved my issues. IMO any WooCommerce site needs this.

![](https://secure.gravatar.com/avatar/79db4f3f68167121e814ee997acd3b2ac4e122181bd1b9e2259b43b0be0306f1?
s=60&d=retro&r=g)

### 󠀁[VERY SIMPLE PLUGIN TO BLOCK FAKE ORDERS – THANK YOU !](https://wordpress.org/support/topic/very-simple-plugin-to-block-fake-orders-thank-you/)󠁿

 [clitopwebsite](https://profiles.wordpress.org/clitopwebsite/) 19. april, 2024 
2 svar

VERY SIMPLE PLUGIN TO BLOCK FAKE ORDERS – THANK YOU ! But can you add a settings
page to let us add the email addresses that we want to block ? Thank you !

![](https://secure.gravatar.com/avatar/51668923ac314e89a00e130057108ac7abeaaac80e8c7462dbf319d36f73e77e?
s=60&d=retro&r=g)

### 󠀁[Great plugin until today when I get orders with email addresses that end by fake](https://wordpress.org/support/topic/great-plugin-until-today-when-i-get-orders-with-email-addresses-that-end-by-fake/)󠁿

 [catvetbeb](https://profiles.wordpress.org/catvetbeb/) 29. oktober, 2022 1 svar

Great plugin until today when I get orders with email addresses that end by fakemail(
dot)com Any helpe please ? Thank you.

![](https://secure.gravatar.com/avatar/7855b1802efaac70def792f4b01f82c24b989fcb3f98690b0f13d95cd7010447?
s=60&d=retro&r=g)

### 󠀁[BEST & EASIEST PLUGIN TO BLOCK SPAM ORDERS](https://wordpress.org/support/topic/best-easiest-plugin-to-block-spam-orders/)󠁿

 [cacabe](https://profiles.wordpress.org/cacabe/) 1. februar, 2022 2 svar

BEST & EASIEST PLUGIN TO BLOCK SPAM ORDERS AS bbbbb bbbbb bbbbb [ Fake email and
address removed ] BUT SAD: This plugin hasn’t been tested with the latest 3 major
releases of WordPress. It may no longer be maintained or supported and may have 
compatibility issues when used with more recent versions of WordPress.

![](https://secure.gravatar.com/avatar/3eaec2daced26ebc1e364cdf227aaec0e6220afa7fc1777ad8de0e97b30a4877?
s=60&d=retro&r=g)

### 󠀁[Excellent simple plugin](https://wordpress.org/support/topic/excellent-simple-plugin-16/)󠁿

 [Kristof Loyens Quantum Leap](https://profiles.wordpress.org/quantum-leap/) 22.
januar, 2021

Works as expected. Thank you author!

![](https://secure.gravatar.com/avatar/03f451f696eee9a4d87f6d076b2edf4e2cc90a71eb4c1c4d6160f8eb6a8ddc31?
s=60&d=retro&r=g)

### 󠀁[Awesome Plugin – Read the code](https://wordpress.org/support/topic/awesome-plugin-read-the-code/)󠁿

 [DL](https://profiles.wordpress.org/dlinstedt/) 21. januar, 2021

Thank you so much for this small snippet of code, I've had a minor problem with 
this bot attacking our site, and the code seems to fix it / prevent it from completing
registration. The code is clean, and simple and does the job.

 [ Læs alle 10 anmeldelser ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/)

## Bidragsydere & udviklere

“Block Specific Spam Woo Orders” er open source-software. Følgende personer har 
bidraget til dette plugin.

Bidragsydere

 *   [ wigster ](https://profiles.wordpress.org/wigster/)

[Oversæt “Block Specific Spam Woo Orders” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/block-specific-spam-woo-orders)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/block-specific-spam-woo-orders/),
tjek [SVN repository](https://plugins.svn.wordpress.org/block-specific-spam-woo-orders/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/block-specific-spam-woo-orders/)
via [RSS](https://plugins.trac.wordpress.org/log/block-specific-spam-woo-orders/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 0.80

 * Tested compatibility with WordPress 7.0.
 * Tested compatibility with WooCommerce 10.8.1.
 * Fixed WooCommerce active detection for network-activated WooCommerce on multisite.
 * Declared WooCommerce as a plugin dependency for WordPress versions that support
   plugin dependencies.
 * Improved email domain matching to compare against the billing email domain instead
   of arbitrary substrings.
 * Hardened custom filter handling for invalid domain/name values.

#### 0.79

 * Tested compatibility with WordPress 6.9
 * Minor change to enforce case insensitive comparison of names.

#### 0.78

 * Tested compatibility with WooCommerce 9.8.1
 * Tested compatibility with WP 6.8

#### 0.77

 * Added filters for extending blocked email domains and names.
 * Tested compatibility with WooCommerce 9.2.3.

#### 0.76

 * Tested compatibility with WP 6.6.1 and WC 9+.
 * Added confirmation that this plugin is compliant with the new WooCommerce HPOS(
   High-Performance Order Storage) / Custom Order Tables (COT) systems.

#### 0.75

 * Tested compatibility with WP 6.5.2 and WC.

#### 0.7

 * Updated logic slightly to simplify checks. Names are now also array-based if 
   people want to manually extend.
 * Added ability to translate/localize the Spam Validation message with typical 
   language translators (WPML, etc.).
 * Confirmed support with WP 6.4 and the latest WooCommerce.

#### 0.6

 * Added a new function to handle checking against multiple blocked domains, now
   including [“@fakemail”].
 * Confirmed support with WP 6.1 and the latest WooCommerce.

#### 0.55

 * Tested support with WP 6.0 and the latest WC – works fine.

#### 0.54

 * Updated supported versions for WP and WooCommerce.

#### 0.53

 * Added support for readme.txt changelogs.

#### 0.52

 * Updated support for WooCommerce – no code changes, minor updates to comment wording.

#### 0.51

 * Initial release.

## Meta

 *  Version **0.80**
 *  Senest opdateret **4 måneder siden**
 *  Aktive installationer **1.000+**
 *  WordPress-version ** 5.1 eller højere **
 *  Testet op til **7.0.7**
 *  PHP-version ** 5.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/block-specific-spam-woo-orders/)
 * Tags
 * [block](https://da.wordpress.org/plugins/tags/block/)[orders](https://da.wordpress.org/plugins/tags/orders/)
   [spam](https://da.wordpress.org/plugins/tags/spam/)[woo](https://da.wordpress.org/plugins/tags/woo/)
   [woocommerce](https://da.wordpress.org/plugins/tags/woocommerce/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/block-specific-spam-woo-orders/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  10 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/reviews/)

## Bidragsydere

 *   [ wigster ](https://profiles.wordpress.org/wigster/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/block-specific-spam-woo-orders/)