Skip to content

Instantly share code, notes, and snippets.

@krzys-h
krzys-h / wrapper.c
Last active March 25, 2022 17:48
HTTrack remove param from query string plugin
// Remove sid= from query string plugin for HTTrack
// by krzys_h, 2018-05-15
// https://gist.github.com/krzys-h/4717608089c54f733083fd390e5c0f2b
// This makes HTTrack automatically remove the sid= parameter from URLs it visits, as there is no way this can be done with commandline parameters (see https://forum.httrack.com/readmsg/27508/index.html)
// Compilation and usage:
// gcc -shared -o wrapper.so -fPIC -I/usr/include/httrack wrapper.c
// httrack --wrapper ./wrapper.so ...