Documentation
ScraperBlock Pro
Developer Reference

WindCodex ScraperBlock Pro Developer Reference

Constants

ConstantValueDescription
SCRAPERBLOCK_PRO_VERSION1.0.0Pro version
SCRAPERBLOCK_PLUGIN_FILE__FILE__Plugin file path

Filters

FilterArgumentsDescription
scraperblock_bypass_request$bypass (bool), $user_agent (string), $ip (string), $remote_addr (string)Return true to let a request skip runtime blocking. By default only local WordPress loopback and Plugin Check requests are bypassed. Does not change robots.txt or .htaccess rules.
scraperblock_log_max_entries$max (int)Number of log entries to keep (default 5000)

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
allow_ai_search_botsnoAllow AI search and assistant bots