Search code examples
facebookcdn

List of Facebook CDN addresses


I need to compile a list of the addresses of all the CDNs used by Facebook.

Example:

fbcdn-sphotos-a.akamaihd.net
fbstatic-a.akamaihd.net
...

I need these for a captive portal application that allows user to connect to WiFi with facebook. We allow facebook.com through the firewall for Graph API calls, but one of the issues we had is that the Facebook login dialog takes forever to load and loads without stylesheets/images. We fixed that by white-listing fbstatic-a.akamaihd.net, but we want to make sure we won't have surprises later.


Solution

  • fbstatic-a.akamaihd.net
    
    fbcdn-profile-a.akamaihd.net 
    
    fbcdn-sphotos-a-a.akamaihd.net
    
    fbcdn-creative-a.akamaihd.net
    
    fbexternal-a.akamaihd.net
    

    And:

    fbcdn-sphotos-b-a.akamaihd.net
    
    fbcdn-sphotos-c-a.akamaihd.net
    
    fbcdn-sphotos-d-a.akamaihd.net
    
    fbcdn-sphotos-e-a.akamaihd.net
    
    fbcdn-sphotos-f-a.akamaihd.net
    
    fbcdn-sphotos-g-a.akamaihd.net
    
    fbcdn-sphotos-h-a.akamaihd.net
    

    Those start from character A and ends at H, if Facebook would add a new domain it must be like :

    fbcdn-sphotos-i-a.akamaihd.net
    

    So future CDN domains would be

    fbcdn-sphotos-j-a.akamaihd.net
    
    fbcdn-sphotos-k-a.akamaihd.net
    
    fbcdn-sphotos-l-a.akamaihd.net
    
    fbcdn-sphotos-m-a.akamaihd.net
    
    fbcdn-sphotos-n-a.akamaihd.net
    

    And So on.. till character Z