Documentation
ScraperBlock Pro
Developer Reference

Developer Reference

Constants

ConstantValueDescription
SCRAPERBLOCK_PRO_VERSION1.0.0Pro version
SCRAPERBLOCK_PLUGIN_FILE__FILE__Plugin file path

Pro Filters

FilterArgumentsDescription
scraperblock_pro_behavioral_signals$signals (array), $requestModify behavioral detection signals
scraperblock_pro_is_geo_blocked$blocked (bool), $country (string)Override geo block decision
scraperblock_pro_ip_is_blocked$blocked (bool), $ip (string)Override IP blocklist decision
scraperblock_pro_ip_is_whitelisted$allowed (bool), $ip (string)Override IP allowlist decision
scraperblock_pro_analytics_event$event (array)Modify or cancel analytics event; return false to skip

Pro Actions

ActionArgumentsDescription
scraperblock_pro_honeypot_triggered$ip (string)Fires when honeypot is visited
scraperblock_pro_behavioral_blocked$ip (string), $signals (array)Fires on behavioral detection block
scraperblock_pro_threat_feed_updated$updated_at (string)Fires after threat feed sync
scraperblock_pro_alert_sent$data (array)Fires after email alert is sent

Pro Settings Defaults

KeyDefaultDescription
behavioral_detectionyesEnable behavioral analysis
content_poisoningnoEnable content poisoning
honeypot_trapsyesEnable honeypot traps
geo_blockingnoEnable country blocking
blocked_countries[]Blocked country codes
realtime_threat_feedyesSubscribe to threat feed
email_alertsnoEnable email notifications
alert_email''Alert recipient
multisite_supportnoNetwork-wide management
woocommerce_protectionnoWooCommerce endpoint protection
woocommerce_strict_rate_limityesStricter WC rate limit
woocommerce_requests_per_minute120WC rate limit threshold
enable_ip_access_controlnoIP allowlist/blocklist
blocked_ips[]Blocked IPs/ranges
whitelisted_ips[]Allowed IPs/ranges
block_schedulingnoTime-based blocking
active_hours_start00:00Block active start
active_hours_end23:59Block active end