Skip to content

Commit

Permalink
Merge pull request #5 from sindastra/patch-1
Browse files Browse the repository at this point in the history
Fix #4: Image hotlinking detection triggered
  • Loading branch information
ballerburg9005 committed Jul 29, 2023
2 parents 56cee18 + 6ab4ccd commit 6f83e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wget-2-zim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function thewget {
wget -r -p -k -c --level="${OPTS[wget-depth]}" --timeout=3s --no-check-certificate -e robots=off --wait=$WGGETWAIT --tries=6 \
--reject "$WGETREJECT" \
--user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36" \
--header="X-Requested-With: XMLHttpRequest" --header="Referer: $DOMAIN" --header='Accept-Language: en' \
--header="X-Requested-With: XMLHttpRequest" --referer "$DOMAIN" --header='Accept-Language: en' \
$URL

echo "Wget finished."
Expand Down Expand Up @@ -137,7 +137,7 @@ for url in $(printf "%s\n%s" "$urls_single" "$urls_double"); do
echo "DEBUG: $url ( requested by: $FILE )"
wget --timeout=3s --no-check-certificate -e robots=off --tries=6 -p \
--user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36" \
--header="X-Requested-With: XMLHttpRequest" --header="Referer: $DOMAIN" \
--header="X-Requested-With: XMLHttpRequest" --referer: "$DOMAIN" \
--reject "$WGETREJECT" \
--directory-prefix="$DOMAIN/wget-2-zim-overreach" "$url"
fi
Expand Down

0 comments on commit 6f83e11

Please sign in to comment.