| 开发者 | jahirulwp |
|---|---|
| 更新时间 | 2026年11月19日 02:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
ordersieve, whether WooCommerce writes its logs to files or to the database. From the logs screen you can clear the log or run the junk order cleanup straight away.
Clean up junk orders
Blocked block-checkout orders stay in your orders list as cancelled. If you would rather not keep them, turn on the cleanup. Once a day, through WooCommerce's Action Scheduler, it deletes orders that OrderSieve blocked and that are older than the number of days you choose, in batches of 50 until none are left, so even a large backlog after an attack clears quickly without slowing your site. Orders OrderSieve did not block are never touched, including ones you cancelled yourself. The cleanup is off by default.
What you can adjust
Everything lives on one page under WooCommerce → OrderSieve Settings:
ordersieve folder to /wp-content/plugins/, or install it from Plugins → Add New.Yes. Every check works on the block checkout. The hidden field is added there by a small script that loads with the checkout block. A request that does not include the field, such as one sent straight to the Store API, is still screened by all the other checks.
It is very unlikely. The automatic checks look for machine behaviour: people do not see the hidden field, take longer than a few seconds to check out, rarely use throwaway email addresses, and do not place 10 orders or fail 5 payments within an hour. The fake name check, which could catch an unusual real name, is off until you turn it on. Every blocked attempt is logged so you can review it, and the rejection message can tell shoppers how to reach you.
Shoppers behind the same office or mobile network can share an IP address. The default of 10 orders an hour leaves plenty of room for that. If your store gets many orders from one place, raise the limit, or add the IP address to the allowed list.
It counts orders that your payment gateway moves to the Failed status. Many card gateways do this when a payment is declined. If yours does not, the order limit still stops a burst of attempts.
Yes, once you tell it which header your proxy uses. By default OrderSieve reads the IP address the connection comes from, which a visitor cannot fake. Behind Cloudflare, a load balancer or another proxy, that is the proxy's address, so under WooCommerce → OrderSieve Settings → Visitor IP address choose the header your proxy sets: CF-Connecting-IP for Cloudflare, or X-Forwarded-For or X-Real-IP for most others. The setting shows the IP address OrderSieve currently sees for you, and OrderSieve warns you on its screens when your site looks like it is behind a proxy. Only choose a header your proxy really sets. On a site without one, anyone can send these headers and pretend to have any IP address, including one on your allowed list. A private address such as 10.0.0.5 is never counted against the order and failed payment limits, so a proxy on your own network cannot make all your shoppers share one limit. Those orders are still limited per email address. IPv6 addresses are counted per /64 network, the block of addresses one connection usually gets, so a bot cannot get around the limits by switching to another address in the same network.
Go to WooCommerce → OrderSieve Logs. It lists the 100 most recent blocked attempts and cleanup runs. The same entries are under WooCommerce → Status → Logs with the source ordersieve.
No. On the classic checkout no order is created. On the block checkout the unfinished order is cancelled without sending the "Cancelled order" email.
No. It only deletes orders that OrderSieve blocked and flagged, older than the number of days you set, 50 at a time. Orders you cancelled or trashed yourself are never touched.
Yes. If a cached or custom checkout page is missing the signed start time, or it does not match the shopper's session, OrderSieve uses the age of the shopper's WooCommerce session instead of blocking the order.
Express checkout can be very quick, so now and then a one-click payment may beat the minimum time. If that happens on your store, lower the minimum time, set it to 0, or turn the time check off with a filter:
add_filter( 'ordersieve_run_time_trap', '__return_false' );
Add a test domain such as example.com under WooCommerce → OrderSieve Settings → Email check → More domains to block, then place a test order with an @example.com email address. The order is rejected and the attempt shows up under WooCommerce → OrderSieve Logs. Remove the test domain afterwards.
Yes, with the ordersieve_disposable_domains filter. Subdomains of each domain you add are blocked too:
add_filter( 'ordersieve_disposable_domains', function ( $domains ) { $domains[] = 'example.com'; return $domains; } );
ordersieve_run_time_trap (filter) – bool $run. Return false to skip the time check.ordersieve_disposable_domains (filter) – string[] $domains. Lowercase domains to block.ordersieve_block_message (filter) – string $message. The message shown to a blocked shopper.ordersieve_client_ip (filter) – string $ip, string $source. The shopper's IP address used for every check.ordersieve_is_allowlisted (filter) – bool $allowed, array $data. Return true to let a checkout skip every check.ordersieve_is_gibberish_name (filter) – bool $gibberish, string $first_name, string $last_name. Change whether a name counts as fake.ordersieve_blocked (action) – string $reason, string $email, array $data. Fires whenever an attempt is blocked. The reason is honeypot, time-trap, disposable-email, blocked-ip, blocked-email, blocked-country, card-testing, rate-limit or gibberish-name. $data holds the email, IP address, billing country and billing name.Checkouts are no longer screened and the daily cleanup stops. Your settings and logs are kept, so everything picks up where it left off when you turn it back on. Deleting the plugin removes its settings, scheduled cleanup and log entries.
No. See the Privacy section above.