CDN integration

A content delivery network or content distribution network (CDN) is a globally distributed network of proxy servers deployed in multiple data centers. The goal of a CDN is to serve content to end-users with high availability and high performance. CDNs serve a large fraction of the static Internet content today, including web objects (text, graphics and scripts), downloadable objects (media files, software, documents), applications (e-commerce, portals), live streaming media, on-demand streaming media, and social networks. Dynamic content is requested by the CDN provider from the original server. The most popular CDN provider IPs (e.g.: CloudFlare, InCapsula) are globally whitelisted on BitNinja protected servers in order to not disrupt their services.

For the time being, BitNinja can be integrated with CloudFlare (more providers will be supported if requested). If a visitor (or attacker) tries to reach your site, they first connect to CloudFlare. If they pass CloudFlare’s security checking they will be redirected to your site through CloudFlare. See more information about how CloudFlare works:

Because CloudFlare’s IPs are globally whitelisted, BitNinja will not block their activity even if they are attacking your server. Visitors’ real IP can be reached through the “CF-Connecting-IP:” HTTP Header or if you install mod_cloudflare. See more info: If BitNinja detects something nasty, it cannot block it until you activate the CloudFlare integration on your Dashboard Settings > Integration.

To add the integration, click on + Add new. You can choose the CDN provider. You have to add your API email which you use to login to your CDN provider dashboard, and your Global API Key. It can be found at: . Unfortunately, only the Global API Key can be used to access CloudFlares firewall settings.

After this if you add or remove IPs from your black, white, or greylist, this information will be sent to CloudFlare as well. These newly added firewall rules has the default comment: “This rule is because of BitNinja” and Actions converted to Block, Whitelist, CAPTCHA on CloudFlare.