How to avoid “HTTP/1.1 999 Request denied” response from LinkedIn?

Question:

I’m making request to LinkedIn page and receiving “HTTP/1.1 999 Request denied” response.
I use AWS/EC-2 and get this response.
On localhost everything works fine.

This is sample of my code to get html-code of the page.

I don’t need whole page content, just meta-tags (title, og-tags).

Answer:

Note that the error 999 don’t exist in W3C Hypertext Transfer Protocol – HTTP/1.1, probably this error is customized (sounds like a joke)

LinkedIn don’t allow direct access, the probable reason of them blocking any “url” from others webservers access should be to:

  1. Prevent unauthorized copying of information
  2. Prevent invasions
  3. Prevent abuse of requests.
  4. Force use API

Some IP addresses of servers are blocked, as the “IP” from “domestic ISP” are not blocked and that when you access the LinkedIn with web-browser you use the IP of your internet provider.

The only way to access the data is to use their APIs. See:

Note: The search engines like Google and Bing probably have their IPs in a “whitelist”.

Leave a Reply