[Top][All Lists]

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

Re: [Lynx-dev] adjusting the url redirect limit?

From: Thomas Dickey
Subject: Re: [Lynx-dev] adjusting the url redirect limit?
Date: Fri, 5 Oct 2018 20:18:04 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Oct 05, 2018 at 07:23:29PM -0400, Karen Lewellen wrote:
> Hi folks,
> currently it is 10 redirections.
> Can this number be increased?

It's a constant, implemented in HTAccess.c like this:

             * Don't exceed the redirection_attempts limit.  - FM
            if (++redirection_attempts > 10) {
                redirection_attempts = 0;
                return NO;


     * Make sure some yoyo doesn't send us 'round in circles with redirecting
     * URLs that point back to themselves.  We'll set the original Lynx limit
     * of 10 redirections per requested URL from a user, because the HTTP/1.1
     * will no longer specify a restriction to 5, but will leave it up to the
     * browser's discretion, in deference to Microsoft.  - FM
    if (redirection_attempts > 10) {
        redirection_attempts = 0;
        return NO;

Someone might want to propose a configuration patch, e.g., to allow
lynx.cfg to modify that limit.

See these old mentions:

and this:

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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