Jump to content
  • Sign Up

Access API by IP


Recommended Posts

When sending looking up the DNS entry of api.guildwars2.com you get two entries (https://mxtoolbox.com/SuperTool.aspx?action=a%3aapi.guildwars2.com&run=toolpage):

A 34.226.105.80 (https://34.226.105.80/)

A 54.85.19.255 (https://54.85.19.255/)

However when trying to access the API by either of these an unsafe SSL certificate is returned and when continuing the server returns 403 - Access denied.

 

Is there any way of accessing the API directly by IP?

Link to comment
Share on other sites

No. You can hardcode the IPs though, for example by adding them to /etc/hosts, using a custom DNS server or overriding the name resolution of the language/framework/... you are using.

 

There is no guarantee that these IPs remain the same in the future though, so hardcoding the IPs is not adviced.

Link to comment
Share on other sites

> @"Artenuvielle.6025" said:

> However when trying to access the API by either of these an unsafe SSL certificate is returned and when continuing the server returns 403 - Access denied.

They are only "unsafe" because the IP is not the hostname which is written in the SSL certificates fields to which host the certificate belongs.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...