qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please Read: Error in website redirection


From: Stefan Hajnoczi
Subject: Re: Please Read: Error in website redirection
Date: Mon, 9 Dec 2024 09:27:36 -0500

On Mon, 9 Dec 2024 at 01:42, Thomas Huth <thuth@redhat.com> wrote:
>
> On 08/12/2024 01.17, Myles Wilson wrote:
> > Hello,
> > I was recently trying to download QEMU and noticed, on the landing page of
> > https://www.qemu.org/ <https://www.qemu.org/>,//the button titled "Full list
> > of releases"
> > redirects to https://download.qemu.org/ <https://download.qemu.org/> which
> > results in a *403 forbidden* error.
> > the same issue is present throughout the whole site with any button or
> > hyperlink to see full releases (even the one found in https://www.qemu.org/
> > download/ <https://www.qemu.org/download/> )
>
> It seems to be broken for "https://download.qemu.org"; but if you manually
> add a slash at the end ("https://download.qemu.org/";) it works at least for 
> me.
>
> Paolo, Stefan, looks like a server misconfiguration to me, is this something
> that could be fixed in the configs? Otherwise, I think we should update the
> links on the website to include a slash at the end...

This issue seems to be related to how the CDN server handles the HTTP
Referer header.

Paolo: Is there a GNOME GitLab project where we can raise an issue to
ask the CDN admins to help?

The 403 response occurs when I include the referrer:

$ curl 'https://download.qemu.org/' -H 'Referer: https://www.qemu.org/' -o -
<!DOCTYPE html>
<head>
    <base href="//error.c.cdn77.org/" target="_blank">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="author" content="(c) 2019 CDN77">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="nofollow" />
    <link rel="stylesheet" href="css/main.css">
    <link rel="shortcut icon" href="img/favicon.ico" />

    <title>Forbidden</title>
</head>
<body>
    <header class="Header">
        <div class="Header-wrap">
            <span class="Header-errorNumber">Error 403</span>
            <h1 class="Header-title">Forbidden</h1>
            <div class="Header-description">Sorry, you don't have
permission to access this resource.</div>
        </div>
    </header>
</body>

Now without the referrer:

$ curl 'https://download.qemu.org/' -o -
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<h1>Index of /</h1>
<hr>
<table id="list">
<thead><tr>
<th style="text-align: left; width:55%">Filename
                            </th>
<th style="text-align: left; width:20%">File Size
                            </th>
<th style="text-align: left; width:25%">Date</th>
</tr></thead>
<tbody>
...

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]