How to Control WordPress Spam with IP Blacklisting and Whitelisting

图片[1]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

WordfenceIt is a popular WordPress security plugin that offers powerful defense features. It comes with a wide range of features to help protect websites from unauthorized access, hacking and malware.Wordfence is backed by the world's top WordPress security research team, and the plugin offers a comprehensive range of security features to provide users with a high level of security.

Wordfence Key Features

1. Firewall

  • Web Application Firewall (WAF): Real-time monitoring of website traffic, effectively blocking malicious traffic and protecting websites from various attacks.
  • Real-time IP blacklisting: Keeps known attackers away from your website, further enhancing its security. (This is a paid feature)

2. Malware scanning

  • full scan: Wordfence is able to fully scan your WordPress site's files, themes, and plugins to detect and remove threats such as malware, backdoors, SEO spam, and malicious redirects.
  • Document comparison: Compare core files, themes and plugins with the WordPress.org repository to detect and fix tampering in a timely manner.

3、Login security

  • Limitations on Login Attempts: Set login attempt limits to protect your site from brute-force cracking attacks.
  • Two-factor authentication (2FA): Provides two-factor authentication to further enhance the security of user login.

4、Real-time monitoring

  • Real-time traffic monitoring: Monitor traffic and hacking attempts in real time to detect and respond to potential security threats.
  • Real-time traffic view: Real-time tracking of visitor movements and hacking attempts to ensure site security.

5. Security notifications

  • E-mail notification: Wordfence has the ability to notify you of security alerts and updates via email, keeping you up to date on the security status of your website.

6. Blocking function

  • Block malicious IP addresses and user agents: Effectively reduce the impact of malicious traffic on your website.
  • National level blocking function: Restrict access to specific countries to further enhance site security.

7. Access control

  • Controlling User Privileges: Enhance site security by restricting access to specific WordPress features or pages.

8. Security audits and reports

  • Assessing the state of website security: Detailed reporting on issues identified and timely measures to address security threats.
  • Periodic security reports: Helps you get a full picture of your website's security status and make timely security improvements.

By combining these features, Wordfence provides comprehensive security protection for your WordPress website, helping you to effectively deal with various security challenges and ensure that your website operates securely.

Installation of Wordfence Security

1,Get a free license for Wordfence Security

  • In the WordPress dashboard, Plugins → Install New Plugin, search for: Wordfence Security
图片[2]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复
  • Click GET YOUR WORDFENCE LICENSE to get your license!
  • Click Get a Free License to get a free license
图片[3]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

How to enable the Wordfence plug-in

1. Initial Wordfence Firewall Settings

  • The role of firewalls::
    • Filtering Network Traffic: Filter network packets according to pre-set rules to prevent data from unknown sources or unauthorized data from entering the network.
    • Protect network security: detect and block potential network attacks such as port scanning, denial-of-service attacks, etc.
    • Implement access control: Restrict access to network resources to specific users or devices to ensure that only authorized users can access protected resources.
    • Monitor Network Traffic: Records and analyzes network traffic, providing real-time monitoring and auditing capabilities.

2、Enable firewall

  • Enter the Dashboard screen → Click [Managing Firewalls]
图片[4]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复
  • Web Application Firewall Status → Select [Enable and protectOption]
图片[5]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复
  • Click [Optimize wordfence firewall].
  • Download and keep the backup file [.HTACCESS] [.USER.INI].

Wordfence Advanced Firewall Options

图片[6]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

1、Whitelist IP

  • Add IP addresses or users that are allowed access, bypassing all rules.

Example: The IPv4 range 65.52.104.0/24 should be entered as 65.52.104.[0-255] The IPv6 range 2a03:2880:f001::/48 should be entered as 2a03:2880:f001:[0-ffff].

2. Allowed listed services

Allow certain external services to avoid accidentally blocking them.

3. Blacklisted URL links

set upBait URLMalicious users are recognized and users attempting to access the URL are blocked immediately.

4、Strong protection

  • Immediately lock out invalid usernames.
  • Block IPs that send POST requests using blank User-Agents and Referers.

5. Speed limiting (rate limiting)

  • Enable rate limiting and advanced blocking.
  • The number of requests is strictly limited to prevent false alarms.

6. Allow list URLs

Firewalls do not test the URLs/parameters in this table and are usually added when the firewall is in learning mode.

图片[7]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

Wordfence Scanning Setup Instructions

  • Click on [Manage Scanning]
图片[8]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复
  • Configure the scanning requirements to match your web page
  • Additional Scan Signatures: Scan signatures can be added for use during malware inspection.
  • Maximum number of attempts to resume each scan phase: increase the number of attempts to prevent the scan from being interrupted.
  • Save the changes and start a new scan.

Wordfence Tool Setup Instructions

图片[9]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

1. Real-time flow

  • Traffic logging mode: it is recommended to select "Security only" to reduce the load on the web server.

2、Whois query

  • Find out who owns the IP addresses and domain names of visitors or IP addresses that conduct malicious activities.

3. Import/export options

  • Export: Get a token to ensure security.
  • Import: Use the export token to import the settings.

4. Diagnosis

  • Troubleshoot conflicts, configuration issues, or compatibility issues with other plugins, themes, or hosting environments.

Wordfence Login Security

  1. Dual Identity Authentication (2FA)
    • Use the TOTP application to get a dynamic verification code.
    • Enter the verification code and click Start.
    • Test login to ensure success.
图片[10]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复
  1. recovery code
    • Keep the recovery code safe and use it for special situations.
  2. Login security settings
    • Grace Period: set a grace period for roles that require 2FA.
    • XML-RPC: allows remote procedure call technology.
    • WooCommerce: a platform for building and managing online stores.
    • reCAPTCHA: Use after testing compatibility.
图片[11]-如何通过IP黑名单和白名单控制WordPress垃圾邮件-光子波动网 | WordPress教程、Elementor教程与故障修复

summarize

Wordfence is a powerful WordPress security plugin that provides a wide range of security features including firewall, malware scanning, login security and real-time monitoring to fully protect WordPress websites. By enabling and optimizing Wordfence, you can dramatically improve the security of your website, effectively respond to various security challenges and ensure the safe operation of your website.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:红牛独立站
THE END
If you like it, support it.
kudos1 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments