Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable WGET history tracking

I am looking for a way to permanently remove the .wget-hsts in my home directory.

There is an optional tag that can be added per-wget request to not store history, however, that option needs to be added every time wget is used.

Is there some sort of environment variable or other configuration that will allow me to disable the writing to .wget-hsts?

like image 913
Dov Benyomin Sohacheski Avatar asked Nov 29 '17 08:11

Dov Benyomin Sohacheski


2 Answers

It appears that as of now, the .wgetrc option is working in Debian. Option for ~/.wgetrc is simply.

hsts=0
like image 78
Ryaner Avatar answered Oct 22 '22 22:10

Ryaner


As of now, the answer appears to be no. The workaround I placed in my .bashrc:

alias wget="wget --hsts-file ~/dotfiles/config/wget/wget-hsts"

This question was asked on the mailing list and the respondent suggested modifying the command in the .wgetrc, but as of this answer there is no documented hsts-file command over at https://www.gnu.org/software/wget/manual/html_node/Wgetrc-Commands.html, and my attempts to try and set it there anyway were unsuccessful (received an error message).

like image 32
Ben Creasy Avatar answered Oct 23 '22 00:10

Ben Creasy