csf güvenlik duvarı googlebot engeliyor mu
csf güvenlik duvarı googlebot engeliyor mu
googlebot ipleri sürekli değişiyor ve güvenlik duvarı için kullanıdığınız ip lerde işe yaramıyor
tek çaresi rdns çözümlemesi yapıp kontrol etmek
bunun için csf de çalışan bir script buldum birazda değiştirdim umarım işinize yarar;
#!/bin/bash
awk '{print $1}' /etc/csf/csf.deny | grep -v '#' > /root/deny_list.txt
for i in $(cat /root/deny_list.txt)
do
host $i | grep googlebot
if [ $? -eq 0 ]
then
echo $i >> /root/googlebot-ip-list.txt
fi
done
if [ -f /root/googlebot-ip-list.txt ]
then
echo "Check the reverse DNS before unblocking above IP" >> /root/googlebot-ip-list.txt
mail -s "Googlebot IP is blocked on `hostname`" mailadresi@adress < /root/googlebot-ip-list.txt
fi
rm -f /root/googlebot-ip-list.txt
rm -f /root/deny_list.txt
bunu googlebot olarak yazıp /etc/cron.hourly/ klasorüne kopyalayın ve de izini 750 yamayı unutmayın
iyi çalışamalar