Last Updated: February 25, 2016
·
2.251K
· rafaelfelix

Check if IP address belongs to Akamai (programmatically)

This script is very useful when you work on a company which uses the Akamai CDN, because under heavy traffic its hard to know if you're under a DDOS attack or if it's just Akamai trying to reach the origin servers for your website.

The source code is here: https://gist.github.com/rafaelfelix/5613539

The usage goes like this:

$ ./verifyAkamaiIp.sh -i <IP_ADDR> -u <AKAMAI_USERNAME> -p <AKAMAI_PASSWORD>

Where:

IP_ADDR => the ip address being checked

AKAMAI_USERNAME => the Akamai's control panel username

AKAMAI_USERNAME => the Akamai's control panel password

Enjoy :)