/usr/share/httrack/html/abuse.html is in httrack-doc 3.48.1-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="HTTrack is an easy-to-use website mirror utility. It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuiltrelatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one toanother. You can, also, update an existing mirror site, or resume an interrupted download. The robot is fully configurable, with an integrated help" />
<meta name="keywords" content="httrack, HTTRACK, HTTrack, winhttrack, WINHTTRACK, WinHTTrack, offline browser, web mirror utility, aspirateur web, surf offline, web capture, www mirror utility, browse offline, local site builder, website mirroring, aspirateur www, internet grabber, capture de site web, internet tool, hors connexion, unix, dos, windows 95, windows 98, solaris, ibm580, AIX 4.0, HTS, HTGet, web aspirator, web aspirateur, libre, GPL, GNU, free software" />
<title>HTTrack Website Copier - Offline Browser</title>
<style type="text/css">
<!--
body {
margin: 0; padding: 0; margin-bottom: 15px; margin-top: 8px;
background: #77b;
}
body, td {
font: 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}
#subTitle {
background: #000; color: #fff; padding: 4px; font-weight: bold;
}
#siteNavigation a, #siteNavigation .current {
font-weight: bold; color: #448;
}
#siteNavigation a:link { text-decoration: none; }
#siteNavigation a:visited { text-decoration: none; }
#siteNavigation .current { background-color: #ccd; }
#siteNavigation a:hover { text-decoration: none; background-color: #fff; color: #000; }
#siteNavigation a:active { text-decoration: none; background-color: #ccc; }
a:link { text-decoration: underline; color: #00f; }
a:visited { text-decoration: underline; color: #000; }
a:hover { text-decoration: underline; color: #c00; }
a:active { text-decoration: underline; }
#pageContent {
clear: both;
border-bottom: 6px solid #000;
padding: 10px; padding-top: 20px;
line-height: 1.65em;
background-image: url(images/bg_rings.gif);
background-repeat: no-repeat;
background-position: top right;
}
#pageContent, #siteNavigation {
background-color: #ccd;
}
.imgLeft { float: left; margin-right: 10px; margin-bottom: 10px; }
.imgRight { float: right; margin-left: 10px; margin-bottom: 10px; }
hr { height: 1px; color: #000; background-color: #000; margin-bottom: 15px; }
h1 { margin: 0; font-weight: bold; font-size: 2em; }
h2 { margin: 0; font-weight: bold; font-size: 1.6em; }
h3 { margin: 0; font-weight: bold; font-size: 1.3em; }
h4 { margin: 0; font-weight: bold; font-size: 1.18em; }
.blak { background-color: #000; }
.hide { display: none; }
.tableWidth { min-width: 400px; }
.tblRegular { border-collapse: collapse; }
.tblRegular td { padding: 6px; background-image: url(fade.gif); border: 2px solid #99c; }
.tblHeaderColor, .tblHeaderColor td { background: #99c; }
.tblNoBorder td { border: 0; }
// -->
</style>
</head>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth">
<tr>
<td><img src="images/header_title_4.gif" width="400" height="34" alt="HTTrack Website Copier" title="" border="0" id="title" /></td>
</tr>
</table>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="3" class="tableWidth">
<tr>
<td id="subTitle">Open Source offline browser</td>
</tr>
</table>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth">
<tr class="blak">
<td>
<table width="100%" border="0" align="center" cellspacing="1" cellpadding="0">
<tr>
<td colspan="6">
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="10">
<tr>
<td id="pageContent">
<!-- ==================== End prologue ==================== -->
<h3>For HTTrack users:</h3>
<ul>
<li><a href="#USERS">Advice & what <u>not</u> to do when you are using HTTrack</a></li>
</ul>
<br>
<h3>For webmasters having problems with bandwidth abuse / other abuses related to HTTrack:</h3>
<ul>
<li><a href="#WEBMASTERS">Abuse FAQ for <u>webmasters</a></u></li>
</ul>
<br><br>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" align="left">
<a name="USERS"></a>
<!-- ------------------------------------------------------------ -->
<h2 align="center"><em>Advice & what <u>not</u> to do</em></h2>
<center><h3>Please follow these <i>common sense</i> rules to avoid any network abuse</h3></center>
<br>
<ul>
<li>Do not overload the websites!</li>
<br>
Downloading a site can overload it, if you have a fast pipe, or if you capture too many simultaneous cgi (dynamically generated pages).
<br>
<ul>
<li>Do not download too large websites: use filters</li>
<li>Do not use too many simultaneous connections</li>
<li>Use bandwidth limits</li>
<li>Use connection limits</li>
<li>Use size limits</li>
<li>Use time limits</li>
<li>Only disable robots.txt rules with great care</li>
<li>Try not to download during working hours</li>
<li>Check your mirror transfer rate/size</li>
<li>For large mirrors, first ask the webmaster of the site</li>
</ul>
<br>
<li>Ensure that you can copy the website</li>
<ul>
<li>Are the pages copyrighted?</li>
<li>Can you copy them only for private purpose?</li>
<li>Do not make online mirrors unless you are authorized to do so</li>
</ul>
<br>
<li>Do not overload your network</li>
<ul>
<li>Is your (corporate, private..) network connected through dialup ISP?</li>
<li>Is your network bandwidth limited (and expensive)?</li>
<li>Are you slowing down the traffic?</li>
</ul>
<br>
<li>Do not steal private information</li>
<ul>
<li>Do not grab emails</li>
<li>Do not grab private information</li>
</ul>
</ul>
</table>
<br><br>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" align="left">
<a name="WEBMASTERS"></a>
<!-- ------------------------------------------------------------ -->
<h2 align="center"><em>Abuse FAQ for <u>webmasters</u></em></h2>
<center><h3>How to limit network abuse
<br>
HTTrack Website Copier FAQ (updated - DRAFT)
</h3></center>
<br>
Q: <strong>How to block offline browsers, like HTTrack?</strong><br>
<br>
A: <strong>This is a complex question, let's study it</strong><br>
<br>
First, there are several different reasons for that<br>
Why do you want to block offline browsers? :<br>
<br>
<ol>
<li><a href="#ABUSE1">Because a large part of your bandwidth is used by some users, who are slowing down the rest</a></li>
<li><a href="#ABUSE2">Because of copyright questions (you do not want people to copy parts of your website)</a></li>
<li><a href="#ABUSE3">Because of privacy (you do not want email grabbers to steal all your user's emails)</a></li>
</ol>
<br>
<br>
<ol>
<a name="ABUSE1"></a>
<li>Bandwidth abuse:<br>
<br>
Many Webmasters are concerned about bandwidth abuse, even if this problem is caused by
a minority of people. Offline browsers tools, like HTTrack, can be used in a WRONG way,
and
therefore are sometimes considered as a potential danger.<br>
But before thinking that all offline browsers are BAD, consider this:
students, teachers, IT consultants, websurfers and many people who like your website, may
want to copy
parts of it, for their work, their studies, to teach or demonstrate to people during class
school or
shows. They might do that because they are connected through expensive modem connection,
or because they would like to consult pages while travelling, or archive sites that may be
removed
one day, make some data mining, comiling information ("if only I could find this
website I saw one day.."). <br>
There are many good reasons to mirror websites, and this helps many good people.<br>
As a webmaster, you might be interested to use such tools, too: test broken links, move a
website to
another location, control which external links are put on your website for legal/content
control,
test the webserver response and performances, index it..<br>
<br>
Anyway, bandwidth abuse can be a problem. If your site is regularly "clobbered"
by evil downloaders, you have <br>
various solutions. You have radical solutions, and intermediate solutions. I strongly
recomment not to use<br>
radical solutions, because of the previous remarks (good people often mirror websites).<br>
<br>
In general, for all solutions,<br>
the good thing: it will limit the bandwidth abuse<br>
the bad thing: depending on the solution, it will be either a small constraint, or a fatal
nuisance (you'll get 0 visitors)<br>
or, to be extreme: if you unplug the wire, there will be no bandwidth abuse<br>
<br>
<ol type="a">
<li>Inform people, explain why ("please do not clobber the bandwidth")<br>
Good: Will work with good people. Many good people just don't KNOW that they can slow down
a network.<br>
Bad: Will **only** work with good people<br>
How to do: Obvious - place a note, a warning, an article, a draw, a poeme or whatever you
want<br>
<br>
</li><li>Use "robots.txt" file<br>
Good: Easy to setup<br>
Bad: Easy to override<br>
How to do: Create a robots.txt file on top dir, with proper parameters<br>
Example:<br>
User-agent: *<br>
<br>
Disallow: /bigfolder<br>
<br>
</li><li>Ban registered offline-browsers User-agents<br>
Good: Easy to setup<br>
Bad: Radical, and easy to override<br>
How to do: Filter the "User-agent" HTTP header field<br>
<br>
</li><li>Limit the bandwidth per IP (or by folders)<br>
Good: Efficient<br>
Bad: Multiple users behind proxies will be slow down, not really easy to setup<br>
How to do: Depends on webserver. Might be done with low-level IP rules (QoS)<br>
<br>
</li><li>Priorize small files, against large files<br>
Good: Efficient if large files are the cause of abuse<br>
Bad: Not always efficient<br>
How to do: Depends on the webserver<br>
<br>
</li><li>Ban abuser IPs<br>
Good: Immediate solution<br>
Bad: Annoying to do, useless for dynamic IPs, and not very user friendly<br>
How to do: Either ban IP's on the firewall, or on the webserver (see ACLs)<br>
<br>
</li><li>Limit abusers IPs<br>
Good: Intermediate and immediate solution<br>
Bad: Annoying to do, useless for dynamic IPs, and annoying to maintain..<br>
How to do: Use routine QoS (fair queuing), or webserver options<br>
<br>
</li><li>Use technical tricks (like javascript) to hide URLs<br>
Good: Efficient<br>
Bad: The most efficient tricks will also cause your website to he heavy, and not
user-friendly (and therefore less attractive, even for surfing users). Remember: clients
or visitors might want to consult offline your website. Advanced users will also be still
able to note the URLs and catch them. Will not work on non-javascript browsers. It will
not work if the user clicks 50 times and put downloads in background with a standard
browser<br>
How to do: Most offline browsers (I would say all, but let's say most) are unable to
"understand" javascript/java properly. Reason: very tricky to handle!<br>
Example: <br>
You can replace:<br>
<tt>
<a href="bigfile.zip">Foo</a><br>
</tt>
by:<br>
<tt>
<script language="javascript"><br>
<!--<br>
document.write('<a h' + 're' + 'f="');<br>
document.write('bigfile' + '.' + 'zip">');<br>
// --><br>
</script><br>
Foo<br>
</a><br>
</tt>
<br>
You can also use java-based applets. I would say that it is the "best of the
horrors". A big, fat, slow, bogus java applet. Avoid!<br>
<br>
</li><li>Use technical tricks to lag offline browsers<br>
Good: Efficient<br>
Bad: Can be avoided by advanced users, annoying to maintain, AND potentially worst that
the illness (cgi's are often taking some CPU usage). . It will not work if the user clicks
50 times and put downloads in background with a standard browser<br>
How to do: Create fake empty links that point to cgi's, with long delays<br>
Example: Use things like
<tt>
<ahref="slow.cgi?p=12786549"><nothing></a> (example in php:)<br>
<?php<br>
for($i=0;$i<10;$i++) {<br>
sleep(6);<br>
echo " ";<br>
}<br>
?><br>
</tt>
<br>
</li><li>Use technical tricks to temporarily ban IPs<br>
Good: Efficient<br>
Bad: Radical (your site will only be available online for all users), not easy to setup<br>
How to to: Create fake links with "killing" targets<br>
Example: Use things like <a href="killme.cgi"><nothing></a>
(again an example in php:)<br>
<tt>
<pre>
<?php
// Add IP.
add_temp_firewall_rule($REMOTE_ADDR,"30s");
?>
function add_temp_firewall_rule($addr) {
// The chain chhttp is flushed in a cron job to avoid ipchains overflow
system("/usr/bin/sudo -u root /sbin/ipchains -I 1 chhttp -p tcp -s ".$addr." --dport 80 -j REJECT");
syslog("user rejected due to too many copy attemps : ".$addr);
}
<pre>
</tt>
<br>
<br>
</li>
</ol>
<a name="ABUSE2"></a>
<li>Copyright issues<br>
<br>
You do not want people to "steal" your website, or even copy parts of it. First,
stealing a website does not<br>
require to have an offline browser. Second, direct (and credited) copy is sometimes better
than disguised <br>
plagiarism. Besides, several previous remarks are also interesting here: the more
protected your website will be,<br>
the potentially less attractive it will also be. There is no perfect solution, too. A
webmaster asked me one day<br>
to give him a solution to prevent any website copy. Not only for offline browsers, but
also against "save as", <br>
cut and paste, print.. and print screen. I replied that is was not possible, especially
for the print screen - and<br>
that another potential threat was the evil photographer. Maybe with a "this document
will self-destruct in 5 seconds.."<br>
or by shooting users after consulting the document.<br>
More seriously, once a document is being placed on a website, there will always be the
risks of copy (or plagiarism)<br>
<br>
To limit the risk, previous a- and h- solutions, in "bandwidth abuse" section,
can be used<br>
<br>
<br>
</li>
<a name="ABUSE3"></a>
<li>Privacy<br>
<br>
Might be related to section 2.<br>
But the greatest risk is maybe email grabbers. <br>
<br>
<ol type="a">
<li>A solution can be to use javascript to hide emails. <br>
Good: Efficient<br>
Bad: Non-javascript browsers will not have the "clickable" link<br>
How to do: Use javascript to build mailto: links<br>
Example:<br>
<tt>
<script language="javascript"><br>
<!--<br>
function FOS(host,nom,info) {<br>
var s;<br>
if (info == "") info=nom+"@"+host;<br>
s="mail";<br>
document.write("<a href='"+s+"to:"+nom+"@"+host+"'>"+info+"</a>");<br>
}<br>
FOS('mycompany.com','smith?subject=Hi, John','Click here to email me!')<br>
// --><br>
</script><br>
<noscript><br>
smith at mycompany dot com<br>
</noscript><br>
</tt>
<br>
</li><li>Another one is to create images of emails<br>
Good: Efficient, does not require javascript<br>
Bad: There is still the problem of the link (mailto:), images are bigger than text, and it can cause problems for blind people (a good solution is use an ALT attribute with the email written like "smith at mycompany dot com")<br>
How to do: Not so obvious of you do not want to create images by yourself<br>
Example: (php, Unix)<br>
<tt>
<?php<br>
/*<br>
Email contact displayer<br>
Usage: email.php3?id=<4 bytes of user's md5><br>
The <4 bytes of user's md5> can be calculated using the 2nd script (see below)<br>
Example: http://yourhost/email.php3?id=91ff1a48<br>
*/<br>
$domain="mycompany.com";<br>
$size=12;<br>
<br>
/* Find the user in the system database */<br>
if (!$id)<br>
exit;<br>
unset($email);<br>
unset($name);<br>
unset($pwd);<br>
unset($apwd);<br>
$email="";<br>
$name="";<br>
$fp=@fopen("/etc/passwd","r");<br>
if ($fp) {<br>
$pwd=@fread($fp,filesize("/etc/passwd"));<br>
@fclose($fp);<br>
}<br>
$apwd=split("\n",$pwd);<br>
foreach($apwd as $line) {<br>
$fld=split(":",$line);<br>
if (substr(md5($fld[0]),0,8) == $id) {<br>
$email=$fld[0]."@".$domain;<br>
$nm=substr($fld[4],0,strpos($fld[4],","));<br>
$name=$email;<br>
if ($nm)<br>
$name="\"".$nm."\" <".$email.">";<br>
}<br>
}<br>
if (!$name)<br>
exit;<br>
<br>
/* Create and show the image */<br>
Header ("Content-type: image/gif");<br>
$im = imagecreate ($size*strlen($name), $size*1.5);<br>
$black = ImageColorAllocate ($im, 255, 255, 255);<br>
$white = ImageColorAllocate ($im, 0,0,0);<br>
ImageTTFText($im, $size, 0, 0, $size , $white,
"/usr/share/enlightenment/E-docs/aircut3.ttf",$name);<br>
ImageGif ($im);<br>
ImageDestroy ($im);<br>
?><br>
<br>
</tt>
The script to find the id:<br>
<br>
<tt>
#!/bin/sh<br>
<br>
# small script for email.php3<br>
echo "Enter login:"<br>
read login<br>
echo "The URL is:"<br>
printf "http://yourhost/email.php3?id="<br>
printf $login|md5sum|cut -c1-8<br>
echo <br>
<br>
</tt>
</li><li>You can also create temporary email aliases, each week, for all users<br>
Good: Efficient, and you can give your real email in your reply-to address<br>
Bad: Temporary emails<br>
How to do: Not so hard todo<br>
Example: (script & php, Unix)<br>
<tt>
#!/bin/sh<br>
#<br>
# Anonymous random aliases for all users<br>
# changed each week, to avoid spam problems<br>
# on websites<br>
# (to put into /etc/cron.weekly/)<br>
<br>
# Each alias is regenerated each week, and valid for 2 weeks<br>
<br>
# prefix for all users<br>
# must not be the prefix of another alias!<br>
USER_PREFIX="user-"<br>
<br>
# valid for 2 weeks<br>
ALIAS_VALID=2<br>
<br>
# random string<br>
SECRET="my secret string `hostname -f`"<br>
<br>
# build<br>
grep -vE "^$USER_PREFIX" /etc/aliases > /etc/aliases.new<br>
for i in `cut -f1 -d':' /etc/passwd`; do<br>
if test `id -u $i` -ge 500; then<br>
off=0<br>
while test "$off" -lt $ALIAS_VALID; do<br>
THISWEEK="`date +'%Y'` $[`date +'%U'`-$off]"<br>
SECRET="`echo \"$SECRET $i $THISWEEK\" | md5sum | cut -c1-4`"<br>
FIRST=`echo $i | cut -c1-3`<br>
NAME="$USER_PREFIX$FIRST$SECRET"<br>
echo "$NAME : $i" >> /etc/aliases.new<br>
#<br>
off=$[$off+1]<br>
done<br>
fi<br>
done<br>
<br>
# move file<br>
mv -f /etc/aliases /etc/aliases.old<br>
mv -f /etc/aliases.new /etc/aliases<br>
<br>
# update aliases<br>
newaliases<br>
<br>
</tt>
And then, put the email address in your pages through:
<br>
<br>
<tt>
<a href="mailto:<?php<br>
$user="smith";<br>
$alias=exec("grep ".$user." /etc/aliases | cut -f1 -d' ' | head -n1");<br>
print $alias;<br>
?>@mycompany.com>>
</tt>
</li>
</ol>
</li>
<!-- ------------------------------------------------------------ -->
</table>
<br>
<!-- ==================== Start epilogue ==================== -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="76%" border="0" align="center" valign="bottom" cellspacing="0" cellpadding="0">
<tr>
<td id="footer"><small>© 2007 Xavier Roche & other contributors - Web Design: Leto Kauler.</small></td>
</tr>
</table>
</body>
</html>
|