Deny Access to IP Spammer . From that manage several IP Spam bots to put an average of 1500 de comments a day in one blog. That means extra traffic on the server and made unnecessary stress Akismet ;-). The best example is Where the 2-3 minute each one appears comment spam from IP: .

Two easy ways to block IPSites or classes IP-hate spam-bot .

1. Block access to one or more IPs / classes of IPs and / or domains from .htaccess .

Be written to the file. Htaccess in webroot following lines:

order deny,allow 
deny from all 
allow from (baneaza un singur IP) 
allow from .numedomeniu.tld (baneaza intreg domeniul, inclusiv subdomeniile) allow from 133.123.* (banaeaza toti userii care folosesc ip-uri de la 133.123. in sus .) 
allow from 69.*.255 (baneaza toata clasa de IP-uri care incep cu 69)

2.Block an IP or domain using the PHP code at the top of the page.

$block = array(“”, “”);

if (in_array ($_SERVER[‘REMOTE_ADDR’], $block)) {

PS. And I swear at the ISP… Good that this time it also tells me in the browser who to swear at :)

While reading the URL: I encountered the following error:

* Replica zero-length

Squid did not receive any information as a result of this request.

AdministratorYour cache is .. : D.

Passionate about technology, I enjoy writing on since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » Internet » Deny Access to IP Spammer


Leave a Comment