OVH Community, your new community space.

Blokada stron generujących sztuczny ruch oraz wgeta


h8g923
11-03-2012, 08:19
RewriteEngine On
RewriteOptions Inherit ?

Spacedust
10-03-2012, 15:04
W lighttpd miałem tak, a jak to zrobić w Apache w pliku konfiguracyjnym, aby nie trzeba było dopisywać do .htaccess na każdej stronie ?

$HTTP["useragent"] =~ "Wget" {
$HTTP["url"] =~ "^/katalog(.*)" {
url.access-deny = ( "" )
}

$HTTP["url"] =~ "^/plik.php(.*)" {
url.access-deny = ( "" )
}

$HTTP["querystring"] =~ "^(.*)strona(.*)" {
url.access-deny = ( "" )
}

}
$HTTP["referer"] =~ "(.*)surfing.php(.*)" {
url.access-deny = ( "" )
}

$HTTP["referer"] =~ "(.*)promote.php(.*)" {
url.access-deny = ( "" )
}

$HTTP["referer"] =~ "(.*)trafficadder.php(.*)" {
url.access-deny = ( "" )
}

$HTTP["referer"] =~ "(.*)traffic.php(.*)" {
url.access-deny = ( "" )
}

$HTTP["referer"] =~ ".*loic*." {
url.access-deny = ( "" )
}

$HTTP["referer"] =~ ".*autosurf*." {
url.access-deny = ( "" )
}