mirror of
https://github.com/xroche/httrack.git
synced 2026-07-23 09:09:05 +03:00
The default UA was "Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)", a 25-year-old string naming a dead OS and trivially fingerprinted. Replace it with an honest crawler UA carrying the HTTrack token and a reference URL: "Mozilla/5.0 (compatible; HTTrack/3.x; +https://www.httrack.com/)". Both the engine default (hts_create_opt) and the webhttrack mini-server config default now share one HTS_DEFAULT_USER_AGENT macro, built from HTTRACK_AFF_VERSION so the version token tracks releases without going stale. Closes #449 Signed-off-by: Xavier Roche <roche@httrack.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
183 B
Bash
Executable File
8 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
# Default User-Agent (#449): honest HTTrack token, no Windows 98 relic.
|
|
httrack -O /dev/null -#test=useragent run | grep -q "useragent self-test OK"
|