ソスソスソスtソス@ソスソスソスXソスpソスソスソスホ搾ソス

ソスナ終ソスXソスVソスソスソスF 2020.12.29

ソスソスソスTソスv

AWStatsソスナは、ApacheソスAソスNソスZソスXソスソスソスOソスノ含まゑソストゑソスソスソスReferer(ソスソスソスソスソスNソスソス)ソスソスソスソスソスWソスvソスソスソストアソスNソスZソスXソスソスソスフ托ソスソスソスソスソスソスノ表ソスソスソスソスソストゑソスソスソスソス@ソス\ソスソスソスソスソスソスAソスソスソスフ機ソス\ソスノゑソス闔ゥソスソスソスフサソスCソスgソスソスソスソスソスソスソスNソスソスソストゑソスソスソストゑソスソスソスTソスCソスgソスフ難ソスソスvソスソスソスかソス驍ェソスAソスソスソスフ機ソス\ソスソスソスソスソスpソスソスソストアソス_ソスソスソスgソスTソスCソスgソスソスソスフアソスhソスソスソスXソスソスソスソスソスソスソスNソスソスソスニゑソスソスト擾ソスハに表ソスソスソスソスソスソスソス驍スソス゚、ソスソスソスソスソスNソスソスソスソスソスUソスソスソスソスソスソスソスsソスソスソスネアソスNソスZソスXソスソスソスソスハに行ソスソスソスソス鼾ソスソスソスソスソスソスBソスソスソスソスソスソスソスソスtソス@ソスソスソスXソスpソスソスソスニゑソスソスソスソスB
ソスソスソスソスソスナは、AWStatsソスフ会ソスヘ鯉ソスソスハで、ソスソスソスソスソスNソスソスソスノソスソスtソス@ソスソスソスXソスpソスソスソスAソスhソスソスソスXソスソスソス\ソスソスソスソスソスソスネゑソスソス謔、ソスノゑソスソス驍スソス゚、ソスソスソスソスソスNソスソスソスソスソスソスソスtソス@ソスソスソスXソスpソスソスソスソスソスソスフアソスNソスZソスXソスヘソスソスOソスノ記ソス^ソスソスソスネゑソスソス謔、ソスノゑソスソスソスB


ソスソスApacheソスン抵ソス

[root@centos ~]# vi /etc/httpd/conf.d/referer_spam.confソス@ソスソスソス@ソスソスソスtソス@ソスソスソスXソスpソスソスソスAソスNソスZソスXソスソスソスOソスjソスソスソスpソスン抵ソスtソス@ソスCソスソスソス成
Refererソスソスソスソスソスtソス@ソスソスソスXソスpソスソスソスAソスhソスソスソスXソスソスソスソスフアソスNソスZソスXソスフ場合ソスヘ環具ソスソスマ撰ソスno_logソスソスン定すソスソス謔、ソスノゑソスソスソス
ソスソスソスソスソスLソスソスソスtソス@ソスソスソスXソスpソスソスソスAソスhソスソスソスXソスヘ難ソスソスTソスCソスgソスソスソスOソスノ記ソス^ソスソスソス黷スソスAソスhソスソスソスXソスナ、ソスソスノアソス_ソスソスソスgソスTソスCソスgソスフアソスhソスソスソスXソスナゑソスソスソス
SetEnvIfNoCase Referer (\.|/)1marketingguru\.com no_log
SetEnvIfNoCase Referer (\.|/)\.ru no_log
SetEnvIfNoCase Referer (\.|/)\.su no_log
SetEnvIfNoCase Referer (\.|/)aawebmastesr\.com no_log
SetEnvIfNoCase Referer (\.|/)admax-express\.com no_log
SetEnvIfNoCase Referer (\.|/)asianpornclips\.t35\.com no_log
SetEnvIfNoCase Referer (\.|/)ask-the-songwriter\.com no_log
SetEnvIfNoCase Referer (\.|/)assfuckdolls\.com no_log
SetEnvIfNoCase Referer (\.|/)blogspot\.com no_log
SetEnvIfNoCase Referer (\.|/)caindifest\.com no_log
SetEnvIfNoCase Referer (\.|/)cerfdom\.com no_log
SetEnvIfNoCase Referer (\.|/)com\.ar no_log
SetEnvIfNoCase Referer (\.|/)congregationdc\.com no_log
SetEnvIfNoCase Referer (\.|/)deweight\.com no_log
SetEnvIfNoCase Referer (\.|/)doktor-info\.de no_log
SetEnvIfNoCase Referer (\.|/)edringtonoptical\.com no_log
SetEnvIfNoCase Referer (\.|/)fialf\.cn no_log
SetEnvIfNoCase Referer (\.|/)formspring\.me no_log
SetEnvIfNoCase Referer (\.|/)gamehram\.ru no_log
SetEnvIfNoCase Referer (\.|/)global-wealth-management\.com no_log
SetEnvIfNoCase Referer (\.|/)haarpoint\.net no_log
SetEnvIfNoCase Referer (\.|/)harfordweb\.com no_log
SetEnvIfNoCase Referer (\.|/)heartsdesireconcerts\.com no_log
SetEnvIfNoCase Referer (\.|/)hp-www\.com no_log
SetEnvIfNoCase Referer (\.|/)ilpharm\.com no_log
SetEnvIfNoCase Referer (\.|/)inet-d\.com no_log
SetEnvIfNoCase Referer (\.|/)inspiringwebs\.com no_log
SetEnvIfNoCase Referer (\.|/)interracial.porn.c13a\.com no_log
SetEnvIfNoCase Referer (\.|/)jilview\.com no_log
SetEnvIfNoCase Referer (\.|/)joncard\.com no_log
SetEnvIfNoCase Referer (\.|/)krankenpflegedeutschland\.wordpress\.com no_log
SetEnvIfNoCase Referer (\.|/)kwiz\.biz no_log
SetEnvIfNoCase Referer (\.|/)ler-bochka\.ru no_log
SetEnvIfNoCase Referer (\.|/)lericettedicucina\.it no_log
SetEnvIfNoCase Referer (\.|/)locketech\.com no_log
SetEnvIfNoCase Referer (\.|/)mathesoninteractive\.com no_log
SetEnvIfNoCase Referer (\.|/)mckmac\.com no_log
SetEnvIfNoCase Referer (\.|/)milcard\.com no_log
SetEnvIfNoCase Referer (\.|/)mp3ll\.net no_log
SetEnvIfNoCase Referer (\.|/)mygardenlink\.com no_log
SetEnvIfNoCase Referer (\.|/)netvibes\.com no_log
SetEnvIfNoCase Referer (\.|/)neumannsouthey\.com no_log
SetEnvIfNoCase Referer (\.|/)newsexphone\.com no_log
SetEnvIfNoCase Referer (\.|/)ohab-accounting\.com no_log
SetEnvIfNoCase Referer (\.|/)pharlo\.com no_log
SetEnvIfNoCase Referer (\.|/)phenterminert\.com no_log
SetEnvIfNoCase Referer (\.|/)planettoyko\.com no_log
SetEnvIfNoCase Referer (\.|/)plumper.hardcore.e13a\.com no_log
SetEnvIfNoCase Referer (\.|/)pornstars\.name no_log
SetEnvIfNoCase Referer (\.|/)portalconference\.com no_log
SetEnvIfNoCase Referer (\.|/)pqgraphica\.com no_log
SetEnvIfNoCase Referer (\.|/)prophotorestoration\.com no_log
SetEnvIfNoCase Referer (\.|/)qlporn\.com no_log
SetEnvIfNoCase Referer (\.|/)rak-economic-dept\.com no_log
SetEnvIfNoCase Referer (\.|/)raska-kaffiya\.com no_log
SetEnvIfNoCase Referer (\.|/)removed\.com no_log
SetEnvIfNoCase Referer (\.|/)rubanke\.ru no_log
SetEnvIfNoCase Referer (\.|/)seawolfmm\.com no_log
SetEnvIfNoCase Referer (\.|/)sekwebdesign\.com no_log
SetEnvIfNoCase Referer (\.|/)senauka\.ru no_log
SetEnvIfNoCase Referer (\.|/)slouchco\.com no_log
SetEnvIfNoCase Referer (\.|/)spectronixresearch\.com no_log
SetEnvIfNoCase Referer (\.|/)spiraltouch\.com no_log
SetEnvIfNoCase Referer (\.|/)stlmortgageconsultants\.com no_log
SetEnvIfNoCase Referer (\.|/)sweetplace\.de no_log
SetEnvIfNoCase Referer (\.|/)taskflex\.com no_log
SetEnvIfNoCase Referer (\.|/)technologyevangeslist\.com no_log
SetEnvIfNoCase Referer (\.|/)thebraincell\.net no_log
SetEnvIfNoCase Referer (\.|/)treatstreet\.net no_log
SetEnvIfNoCase Referer (\.|/)tumblr\.com no_log
SetEnvIfNoCase Referer (\.|/)tuning-tech\.de no_log
SetEnvIfNoCase Referer (\.|/)usall\.de no_log
SetEnvIfNoCase Referer (\.|/)videoseighteen\.com no_log
SetEnvIfNoCase Referer (\.|/)visionecon\.com no_log
SetEnvIfNoCase Referer (\.|/)web-prose\.com no_log
SetEnvIfNoCase Referer (\.|/)wfpearsonatgmail\.com no_log
SetEnvIfNoCase Referer (\.|/)xoweight\.com no_log
SetEnvIfNoCase Referer (\.|/)asapautos\.ca no_log
SetEnvIfNoCase Referer (\.|/)outlet-tipps\.de no_log
SetEnvIfNoCase Referer (\.|/)alecso\.net no_log
SetEnvIfNoCase Referer (\.|/)wie-abnehmen\.org no_log
SetEnvIfNoCase Referer (\.|/)rentor\.de no_log
SetEnvIfNoCase Referer (\.|/)xn--gebrauchtwagenhndler-pzb\.de no_log
SetEnvIfNoCase Referer (\.|/)rdbooks\.com no_log
SetEnvIfNoCase Referer (\.|/)xn--gnstig-fliegen-gsb\.de no_log
SetEnvIfNoCase Referer (\.|/)tourextreme\.ru no_log
SetEnvIfNoCase Referer (\.|/)\.kz no_log


[root@centos ~]# vi /etc/httpd/conf/httpd.confソス@ソスソスソス@Apacheソスン抵ソスtソス@ソスCソスソスソスメ集
CustomLog logs/access_log combined env=!no_logソス@ソスソスソス@ソスツ具ソスソスマ撰ソスno_logソスソスソスン定さソスソストゑソスソスソス鼾ソスヘソスソスOソスノ記ソス^ソスソスソスネゑソスソス謔、ソスノゑソスソスソス

[root@centos ~]# systemctl reload httpdソス@ソスソスソス@WebソスTソス[ソスoソス[ソスン定反ソスfソスソスCentOS7ソスフ場合

ソスソスソスソスソスソスソスeソスiソスソスソスX

AWStatsソスフ会ソスヘ鯉ソスソスハゑソスソス辜奇ソスtソス@ソスソスソスXソスpソスソスソスソスソスト趣ソスソスソスソスAソスソスソスソスソスソスソスソスソスソスネ会ソスソスフ手順ソスナ対擾ソスソスソスソスソス

ソスiソスPソスjApacheソスソスソスOソスソスソス辜奇ソスtソス@ソスソスソスXソスpソスソスソスソスソスソスソスソスソスソスソスソスXソスNソスソスソスvソスgソスソスソス成
[root@centos ~]# vi refererlogdel.shソス@ソスソスソス@ApacheソスソスソスOソスソスソスtソス@ソスソスソスXソスpソスソスソス除ソスXソスNソスソスソスvソスgソス成
#!/bin/bash
for host in `cat /etc/httpd/conf.d/referer_spam.conf|awk '{print $3}'|sed -e 's/^(.*)\([^ ]*\)/\1/p' -e d`
do
    grep "http://.*${host}" ${1} > /dev/null
    if [ $? -eq 0 ]; then
        echo "${host} `grep "http://.*${host}" ${1}|wc -l`"
        sed -i "/http:\/\/.*${host}/d" ${1}
    fi
done
which systemctl > /dev/null 2>&1
if [ $? -eq 0 ]; then
    systemctl restart httpd
else
    /etc/rc.d/init.d/httpd restart
fi

ソスiソスQソスjAWStatsソスソスソスOソスソスソス辜奇ソスtソス@ソスソスソスXソスpソスソスソスソスソスソスソスソスソスソスソスソスXソスNソスソスソスvソスgソスソスソス成
[root@centos ~]# vi awstatslogchk.shソス@ソスソスソス@AWStatsソスソスソスOソスソスソスtソス@ソスソスソスXソスpソスソスソス除ソスXソスNソスソスソスvソスgソス成
#!/bin/bash

if [ $# -eq 0 -o ! -f /etc/awstats/awstats.${1}.conf ]; then
    log=`grep ^DirData /etc/awstats/awstats.model.conf|sed -e 's/^DirData="\([^ ]*\)"$/\1/p' -e d`/awstats*.txt
else
    log=`grep ^DirData /etc/awstats/awstats.${1}.conf|sed -e 's/^DirData="\([^ ]*\)"$/\1/p' -e d`/awstats*${1}.txt
fi

for host in `cat /etc/httpd/conf.d/referer_spam.conf|awk '{print $3}'|sed -e 's/^(.*)\([^ ]*\)/\1/p' -e d`
do
    count=`grep "${host}" ${log} | wc -l`
    if [ ${count} != "0" ]; then
        sed -i "/$host/d" $log
        echo "${host} ${count} deleted."
    fi
done


ソスiソスRソスjソスソスソスtソス@ソスソスソスXソスpソスソスソスソスソスソス
ソスソスニゑソスソスソスweb-prose.comソスソスソスソスソスtソス@ソスソスソスXソスpソスソスソスAソスhソスソスソスXソスニゑソスソスト追会ソスソスソスソスソスB
[root@centos ~]# echo "SetEnvIfNoCase Referer (\.|/)web-prose\.com no_log" >> /etc/httpd/conf.d/referer_spam.conf
ソス@ソスソスソス@ソスソスソスtソス@ソスソスソスXソスpソスソスソスAソスhソスソスソスXソスソスヌ会ソスソスソスソスAソスhソスソスソスXソスソスソスフ「.ソスvソスフ前ソスノ「\ソスvソスソス}ソスソスソスソスソス驍アソスソス

[root@centos ~]# sh refererlogdel.sh /var/log/httpd/access_logソス@ソスソスソス@/var/log/httpd/access_logソスソスソス辜奇ソスtソス@ソスソスソスXソスpソスソスソス除

[root@centos ~]# sh awstatslogchk.shソス@ソスソスソス@AWStatsソスソスソスOソスソスソス辜奇ソスtソス@ソスソスソスXソスpソスソスソス除

[root@centos ~]# /root/awstatsreport.sh centossrv.com /var/www/awstatsreportソス@ソスソスソス@AWStatsソスソスソスs


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com