Skip to main content

Cara Mengetahui IP Mana Yang Melakukan Spam Ke Server

IP Spam Web Server

Jika ada IP yang melakukan akses secara berlebihan, terutama pada server Hosting Cpanel, maka berikut ini command untuk mengertahui jumlah koneksi pada IP:

find /usr/local/apache/domlogs/ -maxdepth 1 -type f|xargs grep $(date +%d/%b/%Y) |awk '{print $1}'|cut -d':' -f2|sort |uniq -c|sort -n|tail

Maka akan muncul daftar jumlah akses dari IP yang masuk ke web server.  Selanjutnya tinggal kita gunakan firewall untuk mengatasi hal ini.

(WW).

 

 

 

Leave a Reply

Restricted HTML

  • Allowed HTML tags: <br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <a hreflang href> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.