If you encounter the “Access denied” error message when trying to access http://chat.openai.com, it means that your IP address is recognized as coming from an unsupported region. To resolve this issue, you can try the following suggestions:

  1. Use a different proxy server: Switching to a different proxy server may allow you to access the website. However, avoid using well-known cloud servers like Google’s GCE, Microsoft Azure, or Oracle Cloud, as OpenAI has actively restricted access from these providers.
  2. Avoid public proxy services: Using public proxy services carries the risk of sharing IP addresses with many other users, which increases the chances of being blocked together. It’s best to avoid these services for accessing OpenAI.
  3. Opt for native ISPs in the United States: If possible, consider using an internet service provider (ISP) with native U.S. IP addresses. This reduces the risk of IP blocks and may require obtaining a dedicated server if necessary.
  4. Check the supported countries list: Ensure that the server you are using is located in a supported country/region. China mainland, Hong Kong, and Macau are not supported. Refer to the OpenAI documentation for the complete list of supported countries: https://platform.openai.com/docs/supported-countries

Additionally, if you use a traffic routing strategy like PAC or Clash on your computer, consider adding the top-level domains “openai.com” and “ai.com” to the routing list. This may help with accessing OpenAI services.

Alternative solution: ChatGPT is not accessible within mainland China. Try using a global proxy, and if you still encounter errors, use the “InPrivate window” to access the site.

Error message:

See also  openai.chat completion.create

Access denied

Error code 1020

You do not have access to chat.openai.com.

The site owner may have set restrictions that prevent you from accessing the site.

Solution: The IP address of the proxy has been banned, so you need to change to a different IP address. The common solution is to switch to a proxy with a native IP address. If you are unable to change the proxy’s IP or connect directly to a native IP proxy, you can set up a dual proxy configuration. In simple terms, Software A proxies Software B, and Software B proxies all global traffic.