we're building a landing page to use with Unifi (v3-beta). The landing page should show a facebook (and later LinkedIn) button to login.
After they login with fb (or allow our app) they get unlimited access to the internet.
We can whitelist facebook's IP adresses using this: https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper
Facebook uses Akamai as CDN. And for Akamai, it's not that easy. They have a lot more IPs and have different AS numbers.
Is there a way to get a list of all IPs behind "fbstatic-a.akamaihd.net"?
# nslookup fbstatic-a.akamaihd.net
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
fbstatic-a.akamaihd.net canonical name = fbstatic-a.akamaihd.net.edgesuite.net.
fbstatic-a.akamaihd.net.edgesuite.net canonical name = a1168.dsw4.akamai.net.
Name: a1168.dsw4.akamai.net
Address: 195.10.11.64
Name: a1168.dsw4.akamai.net
Address: 195.10.11.43
Should we just whitelist ALL of Akamai's network (thousands of IPs)?
What would be the best solution for this?