{"id":21693,"date":"2017-11-09T12:45:20","date_gmt":"2017-11-09T05:45:20","guid":{"rendered":"https:\/\/help.ruk-com.in.th\/topic\/21693\/"},"modified":"2017-11-09T12:45:20","modified_gmt":"2017-11-09T05:45:20","slug":"%e0%ba%a7%e0%ba%b4%e0%ba%97%e0%ba%b5%e0%ba%9a%e0%ba%a5%e0%ba%b1%e0%ba%ad%e0%ba%81-spam-%e0%ba%88%e0%ba%b2%e0%ba%81-blacklist-ip-spamhaus-%e0%ba%94%e0%bb%89%e0%ba%a7%e0%ba%8d-iptables","status":"publish","type":"dt_articles","link":"https:\/\/help.ruk-com.in.th\/lo-la\/topic\/21693\/","title":{"rendered":"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables"},"content":{"rendered":"<p><a href=\"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/iptables-firewall-linux-ip-blocker.jpg\" data-lightbox=\"image-set\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/iptables-firewall-linux-ip-blocker.jpg\" alt=\"\" width=\"423\" height=\"249\"><\/a><\/p>\n<p><a href=\"https:\/\/www.spamhaus.org\">Spamhaus<\/a> \u0ec0\u0e9b\u0eb1\u0e99\u0ec0\u0ea7\u0eb1\u0e9a\u0ec4\u0e8a\u0ec9\u0e97\u0eb5\u0ec8\u0e84\u0ead\u0e8d\u0ec0\u0e81\u0eb1\u0e9a\u0ea5\u0ea7\u0e9a\u0ea5\u0ea7\u0ea1\u0edd\u0eb2\u0e8d\u0ec0\u0ea5\u0e81\u0ec4\u0ead\u0e9e\u0eb5\u0e97\u0eb5\u0ec8\u0ea1\u0eb5\u0e9e\u0eb6\u0e94\u0e95\u0eb4\u0e81\u0ecd\u0eb2\u0e97\u0eb5\u0ec8\u0e9a\u0ecd\u0ec8\u0e9b\u0ebb\u0e81\u0e81\u0eb0\u0e95\u0eb4\u0ec0\u0e8a\u0eb1\u0ec8\u0e99\u0eaa\u0ebb\u0ec8\u0e87 Spam Email , DDOS Attack \u0eaa\u0ec9\u0eb2\u0e87\u0e81\u0eb2\u0e99\u0ea5\u0ebb\u0e9a\u0e81\u0ea7\u0e99\u0ec0\u0e84\u0eb7\u0ead\u0e84\u0ec8\u0eb2\u0e8d Internet \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0e97\u0eb2\u0e87 Spamhaus \u0e81\u0ecd\u0ec4\u0e94\u0ec9\u0ea1\u0eb5\u0e81\u0eb2\u0e99\u0ec0\u0e9b\u0eb5\u0e94\u0ec0\u0e9c\u0eb5\u0e8d\u0edd\u0eb2\u0e8d\u0ec0\u0ea5\u0e81 IP \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94 blacklist \u0ec1\u0e88\u0e81\u0ec4\u0ea7\u0ec9\u0ec3\u0e99\u0ec0\u0ea7\u0eb1\u0e9a\u0ec4\u0e8a\u0ec9\u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e81\u0eb2\u0e99\u0ead\u0eb1\u0e9a\u0ec0\u0e94\u0e94\u0e96\u0eb2\u0e99\u0e82\u0ecd\u0ec9\u0ea1\u0eb9\u0e99\u0e97\u0eb8\u0e81\u0ea7\u0eb1\u0e99 \u0eaa\u0eb2\u0ea1\u0eb2\u0e94\u0ec0\u0e9a\u0eb4\u0ec8\u0e87\u0ec4\u0e94\u0ec9\u0e97\u0eb5\u0ec8 <a href=\"https:\/\/www.spamhaus.org\/drop\/drop.lasso\">https:\/\/www.spamhaus.org\/drop\/drop.lasso<\/p>\n<p><\/a>\u0ec3\u0e99\u0e9a\u0ebb\u0e94\u0e84\u0ea7\u0eb2\u0ea1\u0e99\u0eb5\u0ec9\u0e88\u0eb0\u0ec1\u0e99\u0eb0\u0e99\u0ecd\u0eb2\u0e81\u0eb2\u0e99\u0e99\u0ecd\u0eb2\u0ec0\u0ead\u0ebb\u0eb2 IP Blacklist \u0ec0\u0eab\u0ebc\u0ebb\u0ec8\u0eb2\u0e99\u0eb5\u0ec9\u0ea1\u0eb2\u0ec3\u0eaa\u0ec8\u0ec4\u0e9b\u0ec3\u0e99 Chain \u0e82\u0ead\u0e87 IPTables \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0ec0\u0e9b\u0eb1\u0e99 firewall \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94\u0ea2\u0eb9\u0ec8\u0e81\u0eb1\u0e9a linux \u0e97\u0eb8\u0e81\u0ec0\u0e84\u0eb7\u0ec8\u0ead\u0e87\u0ea2\u0eb9\u0ec8\u0ec1\u0ea5\u0ec9\u0ea7 \u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e82\u0eb1\u0ec9\u0e99\u0e95\u0ead\u0e99\u0e94\u0eb1\u0ec8\u0e87\u0e99\u0eb5\u0ec9<\/p>\n<div>\n<p>\u0eaa\u0ec9\u0eb2\u0e87\u0ec4\u0e9f\u0ea5 spamhaus.sh<\/p>\n<pre>vi spamhaus.sh<\/pre>\n<pre>#!\/bin\/bash\n\n# based off the following two scripts\n# http:\/\/www.theunsupported.com\/2012\/07\/block-malicious-ip-addresses\/\n# http:\/\/www.cyberciti.biz\/tips\/block-spamming-scanning-with-iptables.html\n\n# path to iptables\nIPTABLES=\"\/sbin\/iptables\";\n\n# list of known spammers\nURL=\"www.spamhaus.org\/drop\/drop.lasso\";\n\n# save local copy here\nFILE=\"\/tmp\/drop.lasso\";\n\n# iptables custom chain\nCHAIN=\"Spamhaus\";\n\n# check to see if the chain already exists\n$IPTABLES -L $CHAIN -n\n\n# check to see if the chain already exists\nif [ $? -eq 0 ]; then\n\n    # flush the old rules\n    $IPTABLES -F $CHAIN\n\n    echo \"Flushed old rules. Applying updated Spamhaus list....\"    \n\nelse\n\n    # create a new chain set\n    $IPTABLES -N $CHAIN\n\n    # tie chain to input rules so it runs\n    $IPTABLES -A INPUT -j $CHAIN\n\n    # don't allow this traffic through\n    $IPTABLES -A FORWARD -j $CHAIN\n\n    echo \"Chain not detected. Creating new chain and adding Spamhaus list....\"\n\nfi;\n\n# get a copy of the spam list\nwget -qc $URL -O $FILE\n\n# iterate through all known spamming hosts\nfor IP in $( cat $FILE | egrep -v '^;' | awk '{ print $1}' ); do\n\n    # add the ip address log rule to the chain\n    $IPTABLES -A $CHAIN -p 0 -s $IP -j LOG --log-prefix \"[SPAMHAUS BLOCK]\" -m limit --limit 3\/min --limit-burst 10\n\n    # add the ip address to the chain\n    $IPTABLES -A $CHAIN -p 0 -s $IP -j DROP\n\n    echo $IP\n\ndone\n\necho \"Done!\"\n\n# remove the spam list\nunlink $FILE<\/pre>\n<p>\u0ec0\u0eae\u0eb1\u0e94\u0ec3\u0eab\u0ec9\u0eaa\u0eb2\u0ea1\u0eb2\u0e94 execute \u0ec4\u0e94\u0ec9<\/p>\n<pre>chmod +x spamhaus.sh<\/pre>\n<p>\u0ea3\u0eb1\u0e99 script \u0ec0\u0e9e\u0eb7\u0ec8\u0ead\u0eaa\u0ec9\u0eb2\u0e87 rule \u0ec3\u0e99 IPTables<\/p>\n<pre>sh spamhaus.sh<\/pre>\n<p>\u0e97\u0ebb\u0e94\u0ea5\u0ead\u0e87\u0ec0\u0e9a\u0eb4\u0ec8\u0e87 IPTables rule<\/p>\n<pre>iptables -nL<\/pre>\n<p><a href=\"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/Screen-Shot-2559-01-09-at-7.35.38-PM.png\" data-lightbox=\"image-set\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/Screen-Shot-2559-01-09-at-7.35.38-PM.png\" alt=\"\" width=\"658\" height=\"296\"><\/p>\n<p><\/a>\u0e82\u0ecd\u0ec9\u0ea1\u0eb9\u0e99\u0e88\u0eb2\u0e81 Spamhaus \u0e88\u0eb0\u0e9b\u0ec8\u0ebd\u0e99\u0ec1\u0e9b\u0e87 \u0ec1\u0ea5\u0eb0 \u0ead\u0eb1\u0e9a\u0ec0\u0e94\u0e94 blacklist ip \u0e97\u0eb8\u0e81\u0ea7\u0eb1\u0e99\u0ec0\u0eae\u0ebb\u0eb2\u0e88\u0eb6\u0ec8\u0e87\u0e88\u0ecd\u0eb2\u0ec0\u0e9b\u0eb1\u0e99\u0e95\u0ec9\u0ead\u0e87\u0ea1\u0eb5 crontab \u0ec0\u0e9e\u0eb7\u0ec8\u0ead\u0ead\u0eb1\u0e9a\u0ec0\u0e94\u0e94\u0e96\u0eb2\u0e99\u0e82\u0ecd\u0ec9\u0ea1\u0eb9\u0e99\u0ea7\u0eb1\u0e99\u0ea5\u0eb0\u0e84\u0eb1\u0ec9\u0e87 \u0ec2\u0e94\u0e8d\u0ec3\u0eab\u0ec9\u0ec0\u0e9e\u0eb5\u0ec8\u0ea1\u0e84\u0ecd\u0eb2\u0eaa\u0eb1\u0ec8\u0e87\u0e94\u0ec9\u0eb2\u0e99\u0ea5\u0eb8\u0ec8\u0ea1\u0ec4\u0ea7\u0ec9\u0ec3\u0e99\u0ec4\u0e9f\u0ea5 \/etc\/crontab<\/p>\n<pre>0 3 * * * \/usr\/bin\/spamhaus<\/pre>\n<p>\u0eab\u0ebc\u0eb7 \u0e95\u0eb4\u0e94\u0e95\u0eb1\u0ec9\u0e87\u0e9c\u0ec8\u0eb2\u0e99 script \u0e94\u0ec9\u0eb2\u0e99\u0ea5\u0eb8\u0ec8\u0ea1<\/p>\n<pre>wget https:\/\/hostings.ruk-com.in.th\/files\/blockspam.sh\nchmod +x blockspam.sh\nsh blockspam.sh\n<\/pre>\n<p><strong><br \/>\n\u0e97\u0eb5\u0ec8\u0ea1\u0eb2<\/strong> <a href=\"https:\/\/github.com\/cowgill\/spamhaus\">https:\/\/github.com\/cowgill\/spamhaus<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Spamhaus \u0ec0\u0e9b\u0eb1\u0e99\u0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2\u0e94\u0ec0\u0e9a\u0eb4\u0ec8\u0e87\u0ec4\u0e94\u0ec9\u0e97\u0eb5\u0ec8 https:\/\/www.spamhaus.org\/drop\/drop.lasso \u0ec3\u0e99\u0e9a\u0ebb\u0e94\u0e84\u0ea7\u0eb2\u0ea1\u0e99\u0eb5\u0ec9\u0e88\u0eb0\u0ec1\u0e99\u0eb0\u0e99\u0ecd\u0eb2\u0e81\u0eb2\u0e99\u0e99\u0ecd\u0eb2\u0ec0\u0ead\u0ebb\u0eb2 IP Blacklist \u0ec0\u0eab\u0ebc\u0ebb\u0ec8\u0eb2\u0e99\u0eb5\u0ec9\u0ea1\u0eb2\u0ec3\u0eaa\u0ec8\u0ec4\u0e9b\u0ec3\u0e99 Chain \u0e82\u0ead\u0e87 IPTables \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0ec0\u0e9b\u0eb1\u0e99 firewall \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94\u0ea2\u0eb9\u0ec8\u0e81\u0eb1\u0e9a linux \u0e97\u0eb8\u0e81\u0ec0\u0e84\u0eb7\u0ec8\u0ead\u0e87\u0ea2\u0eb9\u0ec8\u0ec1\u0ea5\u0ec9\u0ea7 \u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e82\u0eb1\u0ec9\u0e99\u0e95\u0ead\u0e99\u0e94\u0eb1\u0ec8\u0e87\u0e99\u0eb5\u0ec9 \u0eaa\u0ec9\u0eb2\u0e87\u0ec4\u0e9f\u0ea5 spamhaus.sh vi spamhaus.sh #!\/bin\/bash # based off the following two scripts # http:\/\/www.theunsupported.com\/2012\/07\/block-malicious-ip-addresses\/ # http:\/\/www.cyberciti.biz\/tips\/block-spamming-scanning-with-iptables.html # path to iptables IPTABLES=&#8221;\/sbin\/iptables&#8221;; # list of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":16768,"template":"","article_entries":[297],"article_tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/help.ruk-com.in.th\/topic\/21693\/\" \/>\n<meta property=\"og:locale\" content=\"lo_LA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting\" \/>\n<meta property=\"og:description\" content=\"Spamhaus \u0ec0\u0e9b\u0eb1\u0e99\u0ec0\u0ea7\u0eb1\u0e9a\u0ec4\u0e8a\u0ec9\u0e97\u0eb5\u0ec8\u0e84\u0ead\u0e8d\u0ec0\u0e81\u0eb1\u0e9a\u0ea5\u0ea7\u0e9a\u0ea5\u0ea7\u0ea1\u0edd\u0eb2\u0e8d\u0ec0\u0ea5\u0e81\u0ec4\u0ead\u0e9e\u0eb5\u0e97\u0eb5\u0ec8\u0ea1\u0eb5\u0e9e\u0eb6\u0e94\u0e95\u0eb4\u0e81\u0ecd\u0eb2\u0e97\u0eb5\u0ec8\u0e9a\u0ecd\u0ec8\u0e9b\u0ebb\u0e81\u0e81\u0eb0\u0e95\u0eb4\u0ec0\u0e8a\u0eb1\u0ec8\u0e99\u0eaa\u0ebb\u0ec8\u0e87 Spam Email , DDOS Attack \u0eaa\u0ec9\u0eb2\u0e87\u0e81\u0eb2\u0e99\u0ea5\u0ebb\u0e9a\u0e81\u0ea7\u0e99\u0ec0\u0e84\u0eb7\u0ead\u0e84\u0ec8\u0eb2\u0e8d Internet \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0e97\u0eb2\u0e87 Spamhaus \u0e81\u0ecd\u0ec4\u0e94\u0ec9\u0ea1\u0eb5\u0e81\u0eb2\u0e99\u0ec0\u0e9b\u0eb5\u0e94\u0ec0\u0e9c\u0eb5\u0e8d\u0edd\u0eb2\u0e8d\u0ec0\u0ea5\u0e81 IP \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94 blacklist \u0ec1\u0e88\u0e81\u0ec4\u0ea7\u0ec9\u0ec3\u0e99\u0ec0\u0ea7\u0eb1\u0e9a\u0ec4\u0e8a\u0ec9\u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e81\u0eb2\u0e99\u0ead\u0eb1\u0e9a\u0ec0\u0e94\u0e94\u0e96\u0eb2\u0e99\u0e82\u0ecd\u0ec9\u0ea1\u0eb9\u0e99\u0e97\u0eb8\u0e81\u0ea7\u0eb1\u0e99 \u0eaa\u0eb2\u0ea1\u0eb2\u0e94\u0ec0\u0e9a\u0eb4\u0ec8\u0e87\u0ec4\u0e94\u0ec9\u0e97\u0eb5\u0ec8 https:\/\/www.spamhaus.org\/drop\/drop.lasso \u0ec3\u0e99\u0e9a\u0ebb\u0e94\u0e84\u0ea7\u0eb2\u0ea1\u0e99\u0eb5\u0ec9\u0e88\u0eb0\u0ec1\u0e99\u0eb0\u0e99\u0ecd\u0eb2\u0e81\u0eb2\u0e99\u0e99\u0ecd\u0eb2\u0ec0\u0ead\u0ebb\u0eb2 IP Blacklist \u0ec0\u0eab\u0ebc\u0ebb\u0ec8\u0eb2\u0e99\u0eb5\u0ec9\u0ea1\u0eb2\u0ec3\u0eaa\u0ec8\u0ec4\u0e9b\u0ec3\u0e99 Chain \u0e82\u0ead\u0e87 IPTables \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0ec0\u0e9b\u0eb1\u0e99 firewall \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94\u0ea2\u0eb9\u0ec8\u0e81\u0eb1\u0e9a linux \u0e97\u0eb8\u0e81\u0ec0\u0e84\u0eb7\u0ec8\u0ead\u0e87\u0ea2\u0eb9\u0ec8\u0ec1\u0ea5\u0ec9\u0ea7 \u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e82\u0eb1\u0ec9\u0e99\u0e95\u0ead\u0e99\u0e94\u0eb1\u0ec8\u0e87\u0e99\u0eb5\u0ec9 \u0eaa\u0ec9\u0eb2\u0e87\u0ec4\u0e9f\u0ea5 spamhaus.sh vi spamhaus.sh #!\/bin\/bash # based off the following two scripts # http:\/\/www.theunsupported.com\/2012\/07\/block-malicious-ip-addresses\/ # http:\/\/www.cyberciti.biz\/tips\/block-spamming-scanning-with-iptables.html # path to iptables IPTABLES=&quot;\/sbin\/iptables&quot;; # list of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.ruk-com.in.th\/topic\/21693\/\" \/>\n<meta property=\"og:site_name\" content=\"Ruk-Com Hosting\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/iptables-firewall-linux-ip-blocker.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/\",\"url\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/\",\"name\":\"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/help.ruk-com.in.th\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg\",\"datePublished\":\"2017-11-09T05:45:20+00:00\",\"dateModified\":\"2017-11-09T05:45:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/#breadcrumb\"},\"inLanguage\":\"lo-LA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/help.ruk-com.in.th\/topic\/21693\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"lo-LA\",\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage\",\"url\":\"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg\",\"contentUrl\":\"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg\",\"width\":580,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/help.ruk-com.in.th\/topic\/21693\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/help.ruk-com.in.th\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/help.ruk-com.in.th\/topic\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/help.ruk-com.in.th\/#website\",\"url\":\"https:\/\/help.ruk-com.in.th\/\",\"name\":\"Ruk-Com Hosting\",\"description\":\"Knowledgebase System\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/help.ruk-com.in.th\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"lo-LA\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/help.ruk-com.in.th\/topic\/21693\/","og_locale":"lo_LA","og_type":"article","og_title":"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting","og_description":"Spamhaus \u0ec0\u0e9b\u0eb1\u0e99\u0ec0\u0ea7\u0eb1\u0e9a\u0ec4\u0e8a\u0ec9\u0e97\u0eb5\u0ec8\u0e84\u0ead\u0e8d\u0ec0\u0e81\u0e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/drop\/drop.lasso \u0ec3\u0e99\u0e9a\u0ebb\u0e94\u0e84\u0ea7\u0eb2\u0ea1\u0e99\u0eb5\u0ec9\u0e88\u0eb0\u0ec1\u0e99\u0eb0\u0e99\u0ecd\u0eb2\u0e81\u0eb2\u0e99\u0e99\u0ecd\u0eb2\u0ec0\u0ead\u0ebb\u0eb2 IP Blacklist \u0ec0\u0eab\u0ebc\u0ebb\u0ec8\u0eb2\u0e99\u0eb5\u0ec9\u0ea1\u0eb2\u0ec3\u0eaa\u0ec8\u0ec4\u0e9b\u0ec3\u0e99 Chain \u0e82\u0ead\u0e87 IPTables \u0ec0\u0e8a\u0eb4\u0ec8\u0e87\u0ec0\u0e9b\u0eb1\u0e99 firewall \u0e97\u0eb5\u0ec8\u0e95\u0eb4\u0e94\u0ea2\u0eb9\u0ec8\u0e81\u0eb1\u0e9a linux \u0e97\u0eb8\u0e81\u0ec0\u0e84\u0eb7\u0ec8\u0ead\u0e87\u0ea2\u0eb9\u0ec8\u0ec1\u0ea5\u0ec9\u0ea7 \u0ec2\u0e94\u0e8d\u0ea1\u0eb5\u0e82\u0eb1\u0ec9\u0e99\u0e95\u0ead\u0e99\u0e94\u0eb1\u0ec8\u0e87\u0e99\u0eb5\u0ec9 \u0eaa\u0ec9\u0eb2\u0e87\u0ec4\u0e9f\u0ea5 spamhaus.sh vi spamhaus.sh #!\/bin\/bash # based off the following two scripts # http:\/\/www.theunsupported.com\/2012\/07\/block-malicious-ip-addresses\/ # http:\/\/www.cyberciti.biz\/tips\/block-spamming-scanning-with-iptables.html # path to iptables IPTABLES=\"\/sbin\/iptables\"; # list of [&hellip;]","og_url":"https:\/\/help.ruk-com.in.th\/topic\/21693\/","og_site_name":"Ruk-Com Hosting","og_image":[{"url":"https:\/\/www.ruk-com.in.th\/wp-content\/uploads\/2016\/01\/iptables-firewall-linux-ip-blocker.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/","url":"https:\/\/help.ruk-com.in.th\/topic\/21693\/","name":"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables - Ruk-Com Hosting","isPartOf":{"@id":"https:\/\/help.ruk-com.in.th\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage"},"image":{"@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage"},"thumbnailUrl":"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg","datePublished":"2017-11-09T05:45:20+00:00","dateModified":"2017-11-09T05:45:20+00:00","breadcrumb":{"@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/#breadcrumb"},"inLanguage":"lo-LA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.ruk-com.in.th\/topic\/21693\/"]}]},{"@type":"ImageObject","inLanguage":"lo-LA","@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/#primaryimage","url":"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg","contentUrl":"https:\/\/help.ruk-com.in.th\/wp-content\/uploads\/2017\/11\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c-IP-\u0430\u0434\u0440\u0435\u0441-\u0438\u0437-\u0447\u0435\u0440\u043d\u043e\u0433\u043e-\u0441\u043f\u0438\u0441\u043a\u0430.jpg","width":580,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/help.ruk-com.in.th\/topic\/21693\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/help.ruk-com.in.th\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/help.ruk-com.in.th\/topic\/"},{"@type":"ListItem","position":3,"name":"\u0ea7\u0eb4\u0e97\u0eb5\u0e9a\u0ea5\u0eb1\u0ead\u0e81 Spam \u0e88\u0eb2\u0e81 blacklist IP (spamhaus) \u0e94\u0ec9\u0ea7\u0e8d iptables"}]},{"@type":"WebSite","@id":"https:\/\/help.ruk-com.in.th\/#website","url":"https:\/\/help.ruk-com.in.th\/","name":"Ruk-Com Hosting","description":"Knowledgebase System","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.ruk-com.in.th\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"lo-LA"}]}},"_links":{"self":[{"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/dt_articles\/21693"}],"collection":[{"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/dt_articles"}],"about":[{"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/types\/dt_articles"}],"author":[{"embeddable":true,"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/dt_articles\/21693\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/media\/16768"}],"wp:attachment":[{"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/media?parent=21693"}],"wp:term":[{"taxonomy":"article_entries","embeddable":true,"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/article_entries?post=21693"},{"taxonomy":"article_tags","embeddable":true,"href":"https:\/\/help.ruk-com.in.th\/lo-la\/wp-json\/wp\/v2\/article_tags?post=21693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}