User Tools

Site Tools


linux:geoiplookup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
linux:geoiplookup [2018/03/04 05:06] – created kbadminlinux:geoiplookup [2018/03/04 05:08] kbadmin
Line 9: Line 9:
 </code> </code>
  
 +Bisa digunakan untuk mendeteksi ip dari negara tertentu dan mengahpusnya dari file. Contoh :
 +<code>
 +while read ip; do
 +  text=`geoiplookup $ip`
 +        if echo $text | grep -q 'Indonesia'; then
 +                sed -i "/$ip/d" /etc/csf/blacklistip.txt
 +                echo "$ip removed"
 +        fi
 +done < /etc/csf/blacklistip.txt
 +</code>

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/geoiplookup.txt · Last modified: 2021/03/10 04:06 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki