Bobcares

Enable Advanced Wordfence Protection in OpenLiteSpeed in Simple Steps

by | Jun 24, 2024

To enable advanced Wordfence protection on an OpenLiteSpeed server, we need to install the Wordfence plugin on the WordPress site and configure the server to use the Web Application Firewall (WAF) effectively. Bobcares, as a part of our WordPress Support Service offers solutions to every query that comes our way.

Overview
  1. What is meant by Advanced Wordfence Protection?
  2. Key Features of the Protection
  3. How to Enable Advanced Wordfence Protection on OpenLiteSpeed?

What is meant by Advanced Wordfence Protection?

Protecting the security of the WordPress site is critical, especially with the growing complexity of cyber threats. Advanced Wordfence protection, specifically created for WordPress, provides a complete set of security features aimed at protecting the site from a variety of attacks. We can join it with OpenLiteSpeed web server to enable strong protection without affecting performance.

Key Features of the Protection

  • The WAF allows us to put strict limits on site resource usage by web crawlers, bots, and scripts.
  • Premium users get automatic blocking of IP addresses that are engaged in complex attacks, not just brute force login tries.
  • WordFence’s Threat Defense Feed is regularly updated with the most recent firewall rules, malware signatures, and malicious IP addresses, protecting against new exploits as they emerge.
  • The Premium version enables us to block access to the WordPress login page or the full site from particular countries. This is useful if we only get genuine traffic from specific regions.

How to Enable Advanced Wordfence Protection on OpenLiteSpeed?

1. Log in to the WordPress admin dashboard and log in with the credentials.

2. Go to Plugins > Add New.

3. In the search bar, type “Wordfence” and select the plugin.

4. Click “Install Now,” then “Activate.”

5. Enter the email for alerts and agree to the terms.

6. Enter the premium key if we have one; otherwise, use the free version.

Now, to set up Wordfence for Advanced Protection on OpenLiteSpeed, edit Vhost Configuration for Wordfence.

7. Open the WebAdmin Console at https://:7080.

8. Go to Vhost Configuration > General.

9. Add the line php_value auto_prepend_file /home/example.com/public_html/wordfence-waf.php in the php.ini overwrite section, replacing the path with the actual path to the wordfence-waf.php file.

10. Restart OpenLiteSpeed using systemctl restart lsws or through the WebAdmin interface.

11. Open the .htaccess file in the WordPress site’s root directory.

12. Add the following lines:

advanced wordfence protection openlitespeed

 

13. To prevent LiteSpeed from Aborting Wordfence Scans, include the following code to the .htaccess file:

advanced wordfence protection openlitespeed

14. Log Back into the WordPress admin dashboard.

15. Go to the Wordfence settings page.

16. Ensure the Firewall Protection Level is set to Extended Protection.

[Want to learn more? Reach out to us if you have any further questions.]

Conclusion

The Advanced Wordfence Protection provides a powerful Web Application Firewall, real-time IP blocking and threat intelligence, country blocking, and premium support. To conclude, the article went over the details from our Support team on enabling Advanced Wordfence Protection in OpenLiteSpeed.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF