Security Modules Hub

Bring your software development workflows to security

Geo-blocking

Geo-blocking

Signals & Triggers

On request
If IP is part of blacklisted geolocations

Actions

  • Block the HTTP request Block the HTTP request

Details

This plugin allows users to block requests coming from a given geolocation.

A geolocation can be a country or a group of countries.

Advanced details

On every incoming HTTP request, this plugin lookups the client IP address based on:

  • HTTP headers (x-forwarded-for, x-client-ip, x-real-ip, x-forwarded, x-cluster-client-ip, forwarded-for, forwarded, via).
  • remote connection IP address

If the IP address is part of the blacklisted geolocations, then the incoming HTTP request is blocked.

Language support

  • Ruby
  • Node.js
  • PHP
  • Python
  • Java

Data collected by Sqreen

Signals

No data collected


On attack
  • Number of requests blocked

Built for developers and modern apps

Get up and running in minutes just by installing our lightweight library. Enable plugins in just a couple of clicks.

  • Node.js
  • Ruby
  • PHP
  • Python
  • Java
  • Go
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

$ npm install --save sqreen

$ echo '{ "token": "your token" }' > sqreen.json

 

// This should be the first line of your app

require('sqreen');

$ echo "gem 'sqreen'" >> Gemfile

$ bundle install

$ echo "token: your token" > config/sqreen.yml

$ curl -s https://download.sqreen.io/php/install.sh > sqreen-install.sh && bash sqreen-install.sh your token

$ pip install sqreen

$ echo -e "[sqreen]\ntoken: your token" > sqreen.ini

 

# Insert at the top of your app file (typically wsgi.py or app.py)

import sqreen

sqreen.start()

$ curl https://download.sqreen.io/java/sqreen-.jar -o sqreen.jar

 

// Add JVM startup options:

-javaagent:/path/to/sqreen.jar -Dsqreen.token={{your token}}

Request your beta access for the Go agent Request beta

Build amazing products. Keep them safe.

3 min installation · Try all features for 14 days · No credit card required Sign up Request demo