CrowdSec is an open-source security engine that leverages crowd-sourced threat intelligence to identify and block malicious IP addresses. The CrowdSec component integrates with Edgee to provide real-time IP filtering at the edge using CrowdSec’s Raw IP List integration, automatically blocking known threats while allowing legitimate traffic through. This component fetches regularly updated blocklists containing IP addresses flagged by the global CrowdSec community for malicious behavior such as brute force attacks, scanning activities, and other threat patterns.

Getting Started

To integrate CrowdSec into your Edgee project:
1

Create CrowdSec Console account

  1. Sign up for a free CrowdSec Console account
  2. Verify your email and complete the account setup
2

Set up Raw IP List integration

  1. Log into your CrowdSec Console
  2. Navigate to Blocklists > Integrations
  3. Find “Raw IP List” and click Connect
  4. Enter a unique name for your integration (e.g., “Edgee Integration”)
  5. Click Generate to create your credentials
Your username and password will only be displayed once. Copy and store them securely immediately.
3

Subscribe to blocklists

  1. Navigate to the Blocklist Catalog
  2. Subscribe to relevant blocklists for your use case:
    • CrowdSec Community Blocklist: General malicious IPs
    • Aggressive Crawlers: Block aggressive web scrapers
    • Brute Force IPs: IPs performing brute force attacks
  3. Configure your integration to use these blocklists
4

Add component to Edgee

  1. Open the Edgee console and navigate to your project’s Components
  2. Select “Add a component” and choose edgee/crowdsec from the security section
  3. Configure the component with your CrowdSec credentials
5

Configure component settings

Enter the following required parameters:
  • Endpoint URL: The endpoint URL displayed in step 2, you can also find it in the integration details on the CrowdSec console
  • API Username: The username generated in step 2
  • API Password: The password generated in step 2
Replace {YOUR_INTEGRATION_ID} with the actual integration ID from your CrowdSec Console.
6

Test and activate

  1. Click Save to activate the protection
  2. Check CrowdSec Console for integration activity

How It Works

The CrowdSec component operates as a security filter using crowd-sourced threat intelligence:
  1. Extract client IP address from incoming request
  2. Check IP against cached CrowdSec blocklist
  3. If IP is blocked: Return 403 Forbidden response
  4. If IP is clean: Allow request to proceed normally
  5. On API errors: Fail open (allow traffic for reliability)

Configuration Parameters

endpoint_url
string
required
Your CrowdSec Raw IP List API endpoint. Format: https://admin.api.crowdsec.net/v1/integrations/{integration_id}/contentFind your integration ID in the CrowdSec Console under Blocklist > Integrations.
api_username
string
required
Username for HTTP Basic Authentication with the CrowdSec API. Generated when you create the Raw IP List integration.
api_password
string
required
Password for HTTP Basic Authentication with the CrowdSec API. Store securely and regenerate if compromised.
timeout_ms
integer
default:"2000"
Request timeout in milliseconds for CrowdSec API calls. Range: 100-10000ms. Lower values provide faster failover but may increase false negatives on slow networks.

Performance & Reliability

The component is designed for high-performance edge deployment:
  • Smart Caching: Blocklists cached for 5 minutes with 1-hour stale fallback
  • Background Refresh: Updates happen without blocking user requests
  • Fail-Safe Design: Never blocks legitimate traffic due to API issues
The component prioritizes availability over security - if CrowdSec’s API is unreachable, traffic flows normally rather than being blocked.

Testing Your Setup

# Test your CrowdSec API endpoint directly
curl -u 'your_username:your_password' \
  'https://admin.api.crowdsec.net/v1/integrations/{YOUR_INTEGRATION_ID}/content'
If the API call succeeds, your integration is working correctly and Edgee will start blocking IPs from the list.

Best Practices

  • Monitor Regularly: Check CrowdSec Console for integration health and blocklist updates
  • Credential Security: Edgee automatically encrypts and securely stores your API credentials. Rotate them periodically for best security practices
  • Blocklist Selection: Choose blocklists relevant to your traffic patterns and threat model
  • Performance Testing: Monitor impact on page load times, especially cache miss scenarios
  • Layered Security: Use CrowdSec alongside other security components for comprehensive protection
  • Log Analysis: Review blocked IPs periodically to understand threat patterns

Integration Benefits

  • Real-time Protection: Block threats within minutes of community detection
  • Zero Maintenance: Automatic updates require no manual intervention
  • Community Intelligence: Leverage insights from thousands of CrowdSec deployments worldwide
  • Edge Performance: Filtering occurs at CDN edge before reaching origin servers
  • Cost Reduction: Decrease server load and bandwidth usage from malicious traffic
  • Easy Setup: Simple API integration with comprehensive documentation
For detailed information about CrowdSec’s threat intelligence and community, visit the official CrowdSec documentation. Enhance your security posture by combining CrowdSec with other Edgee security features:
Layered Security Approach: For maximum protection, consider implementing multiple security components. CrowdSec’s IP blocking works excellently with DataDome’s bot detection and Edgee’s built-in rate limiting.