{"id":767,"date":"2017-04-12T15:54:01","date_gmt":"2017-04-12T12:54:01","guid":{"rendered":"https:\/\/www.linux-destek.com\/?p=767"},"modified":"2017-04-12T15:54:01","modified_gmt":"2017-04-12T12:54:01","slug":"sitenizi-saldirgan-botlardan-engelleyin","status":"publish","type":"post","link":"https:\/\/www.48k.com.tr\/sitenizi-saldirgan-botlardan-engelleyin\/","title":{"rendered":"Sitenizi sald\u0131rgan botlardan engelleyin"},"content":{"rendered":"

Linux tabanl\u0131 herhangi bir web sunucunuzda websitenize atak yapan sald\u0131rgan botlar\u0131 engellemek i\u00e7in a\u015fa\u011f\u0131daki ad\u0131mlar\u0131 uygulay\u0131n.<\/p>\n

\/etc\/rc.local dosyan\u0131z\u0131 a\u00e7\u0131n.\u0130\u00e7ine uygun bi yere \u015fu sat\u0131rlar\u0131 yerle\u015ftirin.<\/p>\n

iptables -F<\/p>\n

for x in $(cat \/root\/bad_bot.txt)
\ndo
\niptables -A INPUT -p tcp -s $x –dport 80 -j DROP
\niptables -A INPUT -p tcp -s $x –dport 443 -j DROP
\ndone<\/p>\n

daha sonra kaydedip \u00e7\u0131k\u0131n.bu sefer yukar\u0131daki d\u00f6ng\u00fcde sat\u0131r sat\u0131r okumas\u0131n\u0131 istedi\u011fimiz dosyay\u0131 olu\u015fturun<\/p>\n

nano \/root\/bad_bot.txt<\/p>\n

bad_bot.txt dosyas\u0131<\/a><\/p>\n

 <\/p>\n

Son olarak \/etc\/rc.local olarak \u00e7a\u011f\u0131rd\u0131\u011f\u0131n\u0131zda ve her sunucu a\u00e7\u0131l\u0131\u015f\u0131nda bu ip adreslerinin web sunucu portlar\u0131n\u0131za eri\u015fimi engellenecektir.<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux tabanl\u0131 herhangi bir web sunucunuzda websitenize atak yapan sald\u0131rgan botlar\u0131 engellemek i\u00e7in a\u015fa\u011f\u0131daki ad\u0131mlar\u0131 uygulay\u0131n. \/etc\/rc.local dosyan\u0131z\u0131 a\u00e7\u0131n.\u0130\u00e7ine uygun bi yere \u015fu sat\u0131rlar\u0131 yerle\u015ftirin. iptables -F for x in $(cat \/root\/bad_bot.txt) do iptables -A INPUT -p tcp -s $x –dport 80 -j DROP iptables -A INPUT -p tcp -s $x –dport 443 -j DROP […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[349,350,449,503,574,615],"tags":[624,488,383,625,626,464,627],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-linux-server-kurulumu","category-linux-sunucu-kurulumu","category-linux-sunucu-yonetimi","category-linux-vds","category-linux-web-hosting","category-linux-web-sunucu-problemleri-ve-cozumleri","tag-linux-sistem-yonetimi","tag-linux-web-server","tag-linux-web-sunucu-guvenligi","tag-saldirgan-bot","tag-web-hosting-egitimi","tag-web-server","tag-zararli-bot"],"_links":{"self":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/767"}],"collection":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":0,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}