-
Notifications
You must be signed in to change notification settings - Fork 554
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
[Question] Legal matter regarding using that repo to generate and store currently active php versions #505
Comments
I don't see any legal issues with this. However, IANAL. Anyhow, I think you could also just include https://raw.githubusercontent.com/php/web-php/master/include/version.inc; |
Yup, I looked at that too, but as goal is basically to replace |
Ah, right! I wonder, though, whether you're blocked from https://www.php.net/releases/active.php deliberately, or what is going on there. Maybe @saschaschumann can clarify. |
@kelunik, I think that is a MyraCloud protection. |
Already tried, I used the exact same user-agent than the working request sent from my browser, but doesn't change anything const Axios = require('axios');
const phpDotNet = Axios.create({
baseURL: 'https://www.php.net/',
});
(async () => {
await phpDotNet.get('/releases/active.php', { headers: { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36' } } ).then(res => console.log('OK', {res}))
.catch(err => console.error('ARGH !', {err}));
})(); I double checked if header was correctly sent and it was, I also tried with As said, I understand the need for that kind of protection, I'm just trying to find a quick alternative for my software (and I'm totally fine having to create a repo on my own for that). |
No additional advice, so I switched my POC from private to public: https://github.com/yoanm/php-versions For anyone looking to retrieve current active PHP versions programmatically, you can fetch the In case something pops up on legal matter, feel free to ping me here, re-open this issue, or create one on my repo, up to you. |
TLDR;
From a legal perspective (repo license), can I clone this repository, use an existing function and store the result on one of my own repositories?
Hello,
I have an internal software checking if my projects are up to date with currently active PHP versions.
I found the
active.php
website page which provides exactly what I need.It worked like a charm for a while, but since recently I can't fetch anymore that url as I'm blocked by a kind of DDOS prevention mechanism.
I fully understand the need for that kind of mechanism, but thing is, now my software is stuck and become quite useless
And I found nothing else to rely on at the moment.
As I understand the primary goal of https//php.net website is not really to provide that kind of feature, I had the following idea:
active.php
page provides currently (basically, simple php script includingbranches.inc
to be able to accessget_active_branches()
function)That way would avoid php.net to implement a real API (and all mechanism it would imply) while keeping anyone the ability to access that information.
However, I'm not 100% sure it's OK from a legal matter. I checked the repository license, but it's actually the license of the website itself, so it's confusing a bit.
Moreover, I do not really copy/modify/etc the content of the repo, I'm just using the existing content.
Do you have some advices ?
Thanks a lot.
Related issues:
The text was updated successfully, but these errors were encountered: