How Do You Get Lynx (in Linux) to Automatically Accept Cookies?

Problem scenario
You are using Lynx, and the prompt to accept cookies is tedious or disruptive to a non-interactive process you want to develop.  How do you get Lynx (running on Linux) to automatically accept cookies?

To configure Lynx to always accept cookies, do these steps:

1.  Find lynx.cfg with this command:  find / -name lynx.cfg

2.  Update lynx.cfg in three places:

a) Replace this stanza


with this stanza


b) Replace this stanza


With this stanza (just no leading comment):


c) Replace this stanza


with this stanza:


d) Save the changes.  You are done.

Leave a comment

Your email address will not be published. Required fields are marked *