Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php.net blocks nbftp user-agent #506

Closed
johnklos opened this issue Mar 19, 2022 · 5 comments
Closed

php.net blocks nbftp user-agent #506

johnklos opened this issue Mar 19, 2022 · 5 comments

Comments

@johnklos
Copy link

Description

When NetBSD's wget-like command line ftp program (called nbftp) attempts to fetch php tarballs, an error is returned:

Trying [2a02:cb40:200::1ad]:443 ...
Requesting https://www.php.net/distributions/php-8.0.17.tar.xz
ftp: Error retrieving file `503 Service Temporarily Unavailable'

On the same machine, wget succeeds, so it appears the web servers are blocking nbftp's user-agent (NetBSD-ftp/20210826, where 20210826 is the version).

Although this is a web server issue and not a php issue, I cannot contact the webmasters as listed on https://www.php.net/contact.php because the address there requires senders be subscribed.

PHP Version

All

Operating System

NetBSD

@Girgias Girgias transferred this issue from php/php-src Mar 19, 2022
@cmb69
Copy link
Member

cmb69 commented Mar 19, 2022

Maybe @saschaschumann can have a look at this.

@1ma
Copy link

1ma commented Jun 3, 2022

This has now become a problem for Docker, too. Until last week I was able to download the source tarballs with the ADD url . keyword, now I can't. I don't know what User-Agent Docker uses but as @johnklos mentions curl and wget still work.

Reproducing Dockerfile:

FROM alpine:latest

ADD https://www.php.net/distributions/php-8.1.6.tar.gz .

Output:

$ docker build -t phptest .
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM alpine:latest
 ---> e66264b98777
Step 2/2 : ADD https://www.php.net/distributions/php-8.1.6.tar.gz .
ADD failed: failed to GET https://www.php.net/distributions/php-8.1.6.tar.gz with status 503 Service Unavailable: <!DOCTYPE html><html><head><title>Security Check...

The returned HTML looks like this:
error

1ma added a commit to 1ma/dockertronics that referenced this issue Jun 9, 2022
1ma added a commit to 1ma/dockertronics that referenced this issue Jun 9, 2022
1ma added a commit to 1ma/dockertronics that referenced this issue Jun 9, 2022
@1ma
Copy link

1ma commented Jun 21, 2022

Alright, this looks fixed from my end.

@johnklos
Copy link
Author

This works via nbftp as well. Thanks!

@1ma
Copy link

1ma commented Apr 20, 2023

This has now become a problem for Docker, too. Until last week I was able to download the source tarballs with the ADD url . keyword, now I can't. I don't know what User-Agent Docker uses but as @johnklos mentions curl and wget still work.

Reproducing Dockerfile:

FROM alpine:latest

ADD https://www.php.net/distributions/php-8.1.6.tar.gz .

Output:

$ docker build -t phptest .
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM alpine:latest
 ---> e66264b98777
Step 2/2 : ADD https://www.php.net/distributions/php-8.1.6.tar.gz .
ADD failed: failed to GET https://www.php.net/distributions/php-8.1.6.tar.gz with status 503 Service Unavailable: <!DOCTYPE html><html><head><title>Security Check...

The returned HTML looks like this: error

@cmb69 this started happening again a few days ago. Exactly as I described in 2022-06-03.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants