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

alx.sh redirects to asahilnux.org #58

Open
malagant opened this issue Jan 10, 2024 · 1 comment
Open

alx.sh redirects to asahilnux.org #58

malagant opened this issue Jan 10, 2024 · 1 comment

Comments

@malagant
Copy link

When I'm doing the following curl, I always get a redirect to asahlinux.org (see Location header in response).
This only happens on one machine in my network. How can I fix this? Other MacBook with M2 can successfully load the script.
I have no proxies configured.

curl -i https://alx.sh

HTTP/2 302
server: nginx/1.21.6
date: Wed, 10 Jan 2024 09:05:52 GMT
content-type: text/html
content-length: 145
location: https://asahilinux.org
strict-transport-security: max-age=31536000;

<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.21.6</center>
</body>
</html>
(base)
@marcan
Copy link
Member

marcan commented Jun 7, 2024

Sounds like your curl has the user-agent removed or customized in some way. You will get the script as long as you have a curl user agent.

The reason for the redirect is that a not insignificant number of people plug alx.sh into the browser and would get really confused if it just showed a shell script.

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

2 participants