ERROR 403 (FORBIDDEN) :Your client does not have permission to get URL

  • 3,000
  • Tác giả: admin
  • Ngày đăng:
  • Lượt xem: 3
  • Tình trạng: Còn hàng

I started in this thread, but in my case, I discovered the client was attempting đồ sộ use ipv6. I confirmed this by trying wget instead and the error messages hinted at some ipv6 addresses along with the same 403 error. So I assumed maybe curl was attempting the same.

With curl

curl -sL https://golang.org/dl/go1.20.5.linux-amd64.tar.gz


  
  
  Error 403 (Forbidden)!!1
  
  
  

403. That’s an error.

Your client does not have permission đồ sộ get URL /dl/go1.20.5.linux-amd64.tar.gz from this server. That’s all we know.

With wget

wget https://golang.org/dl/go1.20.5.linux-amd64.tar.gz
--2023-10-05 19:03:18--  https://golang.org/dl/go1.20.5.linux-amd64.tar.gz
Resolving golang.org (golang.org)... 2a00:1450:4003:802::2011, 172.217.17.17
Connecting đồ sộ golang.org (golang.org)|2a00:1450:4003:802::2011|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-10-05 19:03:19 ERROR 403: Forbidden.

Looking up the method đồ sộ force --ipv4 fixed the fetch for bu. In my case it was an ansible script trying đồ sộ tải về and install go on a remote server.

curl -sL --ipv4 https://golang.org/dl/go1.20.5.linux-amd64.tar.gz

This solved the problem for bu.