MainWP Blog

Protecting Child Sites From XML-RPC Brute Force Attacks
MainWP How To's
Sebastian Moran

Protecting Child Sites From XML-RPC Brute Force Attacks

WordPress in its core has a function called XML-RPC, which a limited number of plugins still use like Jetpack. More plugins used to use it when the only method would have been to use the XML-RPC. Most plugins now use the WordPress REST API to connect to a site to pull data from it, by either read or write access. XML-RPC is still targeted for brute force attacks on WordPress sites. A number of CDNs like Cloudflare and Sucuri will protect XML-RPC by default. Cloudflare even offers an easy way to redirect XML-RPC to the home page of a site

Cut Cellphone Usage
Tips & Tricks
Sebastian Moran

Is it Time to Cut Your Cellphone Usage in Half?

You might think of a demonic garden gnome when you hear the word “nomophobia.” Rest assured, your little statue of Gnome Elvis has nothing to do with it. Nomophobia is the fear of being without your cellphone or a mobile device, and it is real. Psychology Today published a post a year ago which covered the reasons why using your cellphone or mobile device without health limits can cause life, health, and relationship issues. Set Rules and Create Boundaries Try the experiment of deleting select Social Media apps on your cellphone or mobile device (e.g., deleting Facebook, Instagram and Twitter).

Blowing the Bloody Doors Off!
MainWP Updates
Sebastian Moran

Blowing the Bloody Doors Off!

Screen acting legend and all round top dude Michael Caine recently published a new book, which includes many amazing life lessons. The lessons can be applied to WordPress, clients and client projects. Using the Difficulty During a negative situation, “Using the Difficulty” is when you look hard, and find something positive within the problem. For example, if a client project did not quite work out the way you intended it to, take the positive elements from it and learn what did go well and how those lessons learned can be applied for future projects. If you make a mistake, learn

Troubleshoot WP Cron Job Issues
MainWP How To's
Sebastian Moran

Using WP-CLI to Troubleshoot WP Cron Job Issues on a Child Site

Sometimes you will run into issues on your child sites which are being caused by active cron jobs. Cron jobs are recurring tasks that need to be run on a site. Most of the time, cron jobs are created by the active plugins (e.g., these cron events all running due to WooCommerce): woocommerce_cancel_unpaid_orders woocommerce_cleanup_sessions woocommerce_cleanup_personal_data woocommerce_cleanup_logs woocommerce_scheduled_sales woocommerce_geoip_updater delete_expired_transients delete_version_transients Cron Events There are ways to view all cron jobs on a child site by using a plugin like WP Crontrol. In this post, we are going to use the many options that WP-CLI has related to cron jobs. There

MainWP How To's
Sebastian Moran

Staying Positive in 2019

With 2019 upon us, now is the time to focus on the new year. One of the best ways to have a healthy mental attitude is to keep a positive outlook. Life will throw you a few curve balls, and how you deal with those really does improve how you can stay driven and happy in the year ahead while maintaining a positive mental attitude. Positive thinking is not a new concept; there are thousands of self-help books and seminars out there for the taking, but focusing your mind to think positive helps carry you through adversity and anything that

WordPress Company Space
WordPress Business
Sebastian Moran

Who Owns Who in the WordPress Company Space

WordPress powers over 32% of the internet and is one of the most used CMS out there. With WordPress being used as much as it is, who are the largest WordPress based companies and who are they owned by. WordPress Worth Current estimates place WordPress commercial ecosystem at generating $10 billion annually. The Titan in the Room If you’re going to talk about WordPress-based companies, then the titan is Automattic, which owns a number of companies like WordPress.com, Jetpack, WooCommerce, VaultPress, Akismet, Crowdsignal and Pressable. Automattic is valued at over $1.6 billion. Automattic has a number of employees who work full

wp profile - WP CLI Command
MainWP How To's
Sebastian Moran

Why Use the wp profile WP-CLI Command?

What is the wp profile Command in WP-CLI? wp profile command is designed for finding where and what is slowing a site down. As with any performance benchmarking, multiple runs will need to be used. Start by running the common commands for wp profile multiple times. This will help you find what is causing WordPress to load slowly on a site. wp profile stage This command will output a number of options in the table. They are broken down as: bootstrap is where WordPress is setting itself up, loading plugins and the main theme, and firing the init hook. main_query

WP-CLI - wp doctor
MainWP How To's
Sebastian Moran

WP-CLI wp doctor Command Why it Might Really Help Your Sites

What is the wp doctor command in WP-CLI? wp doctor lets you easily run a series of configurable checks to diagnose what’s ailing with WordPress. Without wp doctor, your team has to rely on their memory to manually debug problems. With wp doctor, your team saves hours identifying the health of your WordPress installs by codifying diagnosis procedures as a series of checks to run with WP-CLI. It comes with dozens of checks out of the box. name description autoload-options-size Warns when autoloaded options size exceeds the threshold of 900 kb. constant-savequeries-falsy Confirms expected state of the SAVEQUERIES constant. constant-wp-debug-falsy

WP-CLI
MainWP How To's
Sebastian Moran

What is the WP-CLI and why should I use it?

What is the WP-CLI? The WP-CLI is a way of doing anything that you would be able to do in the back-end of a WordPress site in wp-admin, but using command lines. A number of hosts have WP-CLI installed on new servers. One great example is on Cloudways. Common WP-CLI commands If a client site has a white screen issues from an active plugin or theme and you have sFTP/SSH access on the site, then you can change the active plugins. You can also change the site to a new theme, or install a new default theme to test if

WordPress wisdom from Gremlins
Roundup
Sebastian Moran

Life Lessons and WordPress Wisdom from Gremlins

Warning: This post may contain Gremlins. With Christmas around the corner, one of the classic Christmas movies is still Gremlins (1984), a mid-eighties mix of comedy and horror, set with a very Christmas theme. With the film’s mix of Frank Capra and Speilbergisms, the setting is a riff of Bedford Falls from It’s a Wonderful Life, even if it does look like the back-lot of Universal Studios. The film is a classic mix of director Joe Dante’s best work and an amazing soundtrack by the late Jerry Goldsmith. Here are the top five life lessons from Gremlins that apply to

Looking for something?