Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Wordpress comment blacklist needed

Ok, so I don't get thousands of comments, but some of you guys with links are annoying.
Here's my list:
http://pastebin.com/rXmDnmWh
I'm not really interested in Chinese comments as you can see.
Got any?
Can wordpress block by ip ranges to comment?

Comments

  • Why not just use Akismet?

    Thanked by 1GM2015
  • FlamesRunnerFlamesRunner Member
    edited September 2015

    Sure!

    It's easy, especially for you, for the way you word it.

    Just block everything! You'll never have issues again, especially with these pesky spammers :)

    Thanked by 1GM2015
  • FlamesRunnerFlamesRunner Member
    edited September 2015
    <?php
    $ipaddr = $_SERVER['REMOTE_ADDR'];
    $blocked_ips = file_get_contents('blocklist.txt');
    if (strpos($ipaddr,$blocked_ips) !== false) {
    echo "Comments disabled.";
    } else {
    // WP comments code goes here
    }
    ?>
    

    Find where you need to put it, that's about it.

    Thanked by 1GM2015
  • jarjar Patron Provider, Top Host, Veteran

    Better method for preventing spam comments:

    https://codex.wordpress.org/Combating_Comment_Spam/Denying_Access#Deny_Access_to_No_Referrer_Requests

    I use that because I do get thousands of spam comments without it.

    Thanked by 2GM2015 Droidzone
  • You can send comments with links in them to moderated queue I think :)

    Thanked by 1GM2015
  • Here is a script to block IP's from badips.com wordpress list: http://pastebin.com/raw.php?i=B4sD2BF8

    You could also use @black's bad IP checker for checking IP for allowing them to comment! http://getipintel.net/

    Thanked by 1GM2015
  • Do what @Jar and @Droidzone suggested.

    Problem solved.

    Thanked by 1GM2015
  • Thanks for the mention. Here's some tips if you plan on using it. I recommend you see what value ipintel returns on good & bad comments so you can choose the correct value to block on in your implementation. Be sure to implement error handling (HTTP 503 errors or if you get a negative values as result) and set timeout limit on the http request.

    These are the most common mistakes I come across with users that query the system.

    Thanked by 2GM2015 linuxthefish
  • As long as your blog is not in Chinese, just block access from any Chinese ip and you'll get rid of a hole bunch of spam. I use the "SI Captcha Anti-Spam" plugin and it's working just great against spam which got easily manageable.

    Thanked by 1GM2015
  • GM2015GM2015 Member
    edited September 2015

    I've changed the htaccess mentioned above and man, my error saved my life. I blocked the referrer in iceweasel, posted a garbage and pressed post and here's what happened.

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*mydomain.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://meatspin.com/$ [R=301,L]
    
    

    I got a 404 error due to $ sign after the root domain and I was saved from a brainfuck.

    nexusrain said: As long as your blog is not in Chinese, just block access from any Chinese ip and you'll get rid of a hole bunch of spam. I use the "SI Captcha Anti-Spam" plugin and it's working just great against spam which got easily manageable.

    Droidzone said: Why not just use Akismet?

    FlamesRunner said: Sure!

    It's easy, especially for you, for the way you word it.

    Just block everything! You'll never have issues again, especially with these pesky spammers :)

    Jar said: Better method for preventing spam comments:

    https://codex.wordpress.org/Combating_Comment_Spam/Denying_Access#Deny_Access_to_No_Referrer_Requests

    I use that because I do get thousands of spam comments without it.

    4n0nx said: You can send comments with links in them to moderated queue I think :)

    linuxthefish said: Here is a script to block IP's from badips.com wordpress list: http://pastebin.com/raw.php?i=B4sD2BF8

    You could also use @black's bad IP checker for checking IP for allowing them to comment! http://getipintel.net/

    JustAMacUser said: Do what @Jar and @Droidzone suggested.>Problem solved.

    black said: Thanks for the mention. Here's some tips if you plan on using it. I recommend you see what value ipintel returns on good & bad comments so you can choose the correct value to block on in your implementation. Be sure to implement error handling (HTTP 503 errors or if you get a negative values as result) and set timeout limit on the http request.>These are the most common mistakes I come across with users that query the system.

    nexusrain said: As long as your blog is not in Chinese, just block access from any Chinese ip and you'll get rid of a hole bunch of spam. I use the "SI Captcha Anti-Spam" plugin and it's working just great against spam which got easily manageable.

  • I use wordpress "anti-spam" plugin for years, and it works like a charm to fight spammers. no captcha, no settings. :)

    https://wordpress.org/plugins/anti-spam/

Sign In or Register to comment.