Fix: Analytics Spam

Fix Analytics Spam

This blog post is a master guide to block Google Analytics referrer spam. I’ve added various methods to block the referral spam and I’ll update the content accordingly.

You’re here because of the new referral traffic from,,,,,,,,, or its variants are spamming your Google Analytics data. Here’s how to block that single referral domain and related multiple referrers.

Method 1: block referral spam using Google Analytics
Method 2: disable spam in .htaccess (for Apache servers)
Method 3: disable spam in NGINX
Method 4: disable spam using Cloudflare

01/18/2019: Added fix.
01/15/2019: Added fix.
12/19/1018: Added fix and NGINX method to block the Analytics spam.
12/06/2018: Added fix.
12/05/2018: Added fix.
12/04/2018: Added fix.
12/03/2018: Added fix.
11/29/2018: Added fix.
11/14/2018: Added fix.
11/07/2018: Added fix.
11/01/2018: Added fix.
10/27/2018: Added fix.
10/13/2018: Added the solution to fix Analytics spam
10/10/2018: Added the solution to fix spam.
09/27/2018 11:57 PM: Blimey! It seems like they’re targeting me for writing this blog post.
09/27/2018 11:16 PM: Added the Cloudflare method to block servers that spam your website.
09/25/2018: This guide has the solution to fix,, and other domains that spam Google Analytics. Just change the domain name/URL accordingly. I’ve added a new .htaccess method also (future-proof).

Exclude a single referrer

How to Block Analytics Spam (September 2018)

  1. Sign in to Google Analytics.
  2. Click Admin, and navigate to the view in which you want to create the filter.
  3. In the VIEW column, click Filters.
  4. Click + New Filter. (If you can’t see this button, you do not have the necessary permission.)
  5. Select Create new Filter.
  6. Enter a name for the filter. Let’s name it
  7. Set the Filter Type to Custom.
  8. Click the Select filter type drop-down menu and select Exclude.
  9. Now Set the Filter field to Campaign Source.
  10. Enter the Filter Pattern. In this case, add (the-spam-domain-name.tld) and click Save.

To Exclude multiple referrers

You can use the regular expression in the Filter Pattern field to exclude several referring sources.

i.e., If you want to add multiple URLs, make a filter pattern separated by a | (pipeline).



Visit this link to learn more about setting filters on different levels. You may also set the Language Settings Filter and Campaign Referral Path Filter as well.

Block Analytics Spam in .htaccess

Applying filters is more like a band-aid solution. The spam sites are still sending traffic to your website, and GA doesn’t show it. Want to block the referral sites before they get to your site? There are two methods to block referral spam using .htaccess.

1. The Easy Method

!! You have to be careful when editing .htaccess files, as a small mistake can make your website stop working or throw a server error loop. So have a backup! Copy and paste the old content of .htaccess file somewhere safe before proceeding.

Usually, the .htaccess file goes to the root of your website (/public_html for example, the same location of wp-config.php). If there is none, you can create a new file. But watch out not to create something like “.htaccess.txt” if you do it with notepad (which usually appends .txt to all files).

The location may vary according to where you installed WordPress inside the host. Edit the .htaccess file and add the following line:

RewriteEngine on
RewriteCond %{HTTP_REFERER}\.com [NC, OR]
RewriteCond %{HTTP_REFERER} wakeupseoconsultant\.com [NC, OR]
RewriteCond %{HTTP_REFERER} example-spam-website\.com [NC]
RewriteRule .* - [F]

(Copy and paste the code in the bottom of your .htaccess.)

Note: Check whether a RewriteEngine On line is already inside your .htaccess file. Then you don’t need to copy that particular line from the code I shared. RewriteEngine only needs to occur once in the file, preferably at the top.

2. Find Spam Site’s Server IP Address & Block it

There are chances the spammer may spin up more domain names for this unholy practice. Solution? Deny their server to access your website. Proceed at your own risk.

Use a DNS lookup tool like to check spam domain’s (use IP address:

Find's Server IP Address

As you can see, turns out to the unique IP of the domain.

However, you’ve to make sure the spammer is not using any CDN to hide their IP address. Look at for example:

Facebook CDN

Facebook, Inc. CDN uses specific IP ranges for delivering Here’s a list of IP Ranges that Cloudflare use. Make sure that you identify the unique IP of spammer and not IP ranges of a CDN service.

Upon identifying the spam sever, edit the .htaccess file and add the following line:

# block spam referrer
Deny from

Make sure that you enter the correct IP address. Doing so will block all the spammy domains pointed to this server IP address.

Block Analytics Spam Using in NGINX

Open your nginx.conf file located in /etc/nginx/nginx.conf

!! Proceed at your own risk. Contact your host to confirm the location of nginx.conf file. Make sure you have root access to the host. Always have a backup! Copy and paste the old content of nginx.conf file somewhere safe before proceeding.

Add the following lines inside the http block:

# Referer spam

map $http_referer $spam_referer {
default 0;
include /etc/nginx/;

! Nginx’s map (ref) module lets you create variables in Nginx’s configuration file whose values are conditional — that is, they depend on other variables’ values. The map command can only be used inside of the http block.

Create An Analytics Spammer List

Create a new file in the NGINX root directory (‘/etc/nginx’) and name it ‘’ to save a list of spam referrers:

"~*" 1;
"~*" 1;
"~*" 1;
"~*" 1;
"~*" 1;
"~*" 1;

The “~*” means case-insensitive matching.

Now open /etc/nginx/sites_available/default and add the following lines to the server block:

# Referrer exclusions

if ($spam_referer) {
return 444;

444 Explained: Connection Closed Without Response is a non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests. This status code is not seen by the client, it only appears in nginx log files.

Verify & Restart Nginx Service

Run this command to verify the config:

nginx t

Restart nginx if the test is successful:

sudo service nginx restart

Block IPs in Cloudflare CDN

Cloudflare user? The Firewall tab on Cloudflare provides you with an interface that you can use to block or whitelist IP addresses or entire networks. Based on the results from, you can block spammer’s IP using Cloudflare. Here’s how to do it:

  1. Log in to Cloudflare.
  2. Go to the Firewall app.
  3. Add an entry to the Access Rules and select the action.
As seen on

Good luck!

Help someone else by sharing this article. Thank you.

Need a hand?

Need help optimizing your website analytics, speed and search performance? Connect with me now.

The Best Working VPN for China

The Best Working VPN for China

The “best VPN for China that actually works“, this has always been a hot topic among expats in China. Despite the crackdowns and restrictions, there are a lot of VPN providers who’re trying to sell their services for expats in China. To be honest, there’s a bunch of mediocre VPN providers out there.

Image: South China Morning Post

Finding the best from Google is not an easy job because of all the “promoted” content you come across. You need to put a lot of time and effort to research and find the best reliable VPN services in China.

Backstory, VPN for China

Having stayed for more than three years in China, I know what works and what doesn’t when it comes to climbing over the great firewall of China.

I’ve tried multiple VPN providers and even wrote a few tutorials on how to set up DIY SOCKS5 proxies for personal use. Without further ado, let’s look at the best working for VPN for China.


  • I’ve reviewed a trustworthy Shadowsocks service provider also.
  • These are my honest recommendations as of September 2018.


Best Working VPN for China
Stream Netflix, Visit Blocked Sites Including Google Get Express VPN Now

You should’ve heard a lot about them, right? But there are several solid reasons why you should go with ExpressVPN instead of choosing their competitors.

Major Features of ExpressVPN

Let’s look at why ExpressVPN turns out to be the best VPN for China.


Working VPN for China 2018

ExpressVPN has the best up-time comparing to its competitors. Most of their optimized Asian servers are available round the clock.

AES-256 Encryption

Yes, encryption is an essential factor while looking for the best VPN provider. AES (trusted by security experts) is a secure encryption algorithm used in symmetric key cryptography. Additionally, the company uses an RSA-4096 handshake and SHA-512 hash message authentication code, along with PFS. Meaning, you’re in good hands.

OpenVPN and other protocols

ExpressVPN recommends you protocols and servers based on your location and connection. The company also lets you choose the protocols manually in case you know what you’re doing.

Stream/Unblock Netflix

Important feature. A lot of expats in China has a Netflix account and want to stream their favorite TV shows and movies online or on the go. ExpressVPN’s USA, UK, Canada, Hong Kong, and Taiwan servers are optimized for streaming Netflix.

Dedicated Apps

ExpressVPN has dedicated apps for MacOS, Windows, iOS, Android, routers, and Linux. Their knowledge base comes with pretty neat guides.

ExpressVPN on MacOS.

Furthermore, the company offers a “limited” free trial as well. You should try the full-featured version of ExpressVPN “risk-free” for 30 days. Not happy? You’ll get a full refund within 30 days, no questions asked.


  • Reliable, ExpressVPN is a trusted brand.
  • Few optimized servers for streaming Netflix.
  • Dedicated Apps


  • One ExpressVPN subscription only covers three devices of any type.



VPN is not your thing? You prefer proxy servers to stream Netflix and access Google? Give SocketPro a try.

So what’s SocketPro?

SocketPro is essentially a ShadowsocksR proxy service provider that offers cheap easy to use proxy servers which lets you unblock websites and climb the GFW. The whereabouts of SocketPro team are anonymous because of the nature of the service they provide.

Fast, Easy to Use Netflix Optimized. Get SocketPro Now.

I’ve been using their service for almost two years. So, don’t worry about the anonymity. It’s for their own good to survive in China.

Shadowsocks vs. ShadowsocksR

Shadowsocks is an open source SOCKS5 proxy which, according to their official site, is designed to protect your internet traffic.

ShadowsocksR is a fork of the original Shadowsocks project, claimed to be superior in terms of security and stability.

Here are my blog posts on how to manually setup Shadowsocks and ShadowsocksR.

  1. Setup A ShadowsocksR Server On Amazon EC2
  2. Setup A Shadowsocks Server on DigitalOcean

Why ShadowsocksR instead of a VPN?

A conventional VPN protocol creates a network that slows down Chinese websites, which can be annoying when you’re using Taobao, WeChat,, etc.

On the other hand, Shadowsocks has a Global Mode and Auto Mode.

Best Working Shadowsocks Service for China
Get SocketPro for All The Devices.

The Global Mode acts similar to a VPN connection whereas the auto settings (Auto mode by PAC) makes sure you can access Chinese website faster, without using a proxy.

Major features of SocketPro

SockePro is packed with cool features as well. They’ve almost 8000+ active users and 90 node servers.


They use a modern socks5 protocol to transfer your data, which is faster compared to a traditional VPN.

Cross-platform support

Unlike ExpressVPN, SocketPro DO NOT limit your connection, meaning you can connect all your device at the same time.


Your connection is secured with 256-bit encryption to protect your data from prying eyes.



  • Dirt Cheap and fast.
  • Unlimited bandwidth and speed.
  • Few optimized servers for streaming Netflix.


  • Monthly plans are okay, but the yearly plan comes with better servers.
  • No dedicated app for iOS, you should purchase a 3rd party app.

Cloudways: An Honest Review

Cloudways Discount Coupon Code & Offers: 100% Honest Review (2018)

Update: Exclusive Cloudways Coupon Code 2018 – FLAT 20% off!!

Image result for good news everyone

One more reason to start or migrate your WordPress site to Cloudways. I’ve teamed up with Cloudways to bring you an excellent and exclusive deal!


Use coupon code to get a FLAT 20% discount on the first invoice. Offer applies to all plans.

This one’s a killer Cloudways promo code if you’re selecting a small or medium-sized server to host your WordPress site.

Click here to sign-up & use the promo code MIGHIL.

This Cloudways promo powered by is a limited time offer valid for three months starting from September 19, 2018. Hurry up and take advantage of the best Cloudways coupon for 2018.

How to use the Cloudways Coupon Code’s exclusive Cloudways coupon code gives you FLAT 20% off on your first invoice independent of the servers you choose. Follow the instructions below to redeem the coupon code and get a fair discount while signing up with Cloudways.

Visit this link to land on the Cloudways sign-up page.

Cloudways Discount 2018
Click on Get Started Free and it’ll lead you to the sign-up form.

Now click on “Got a Promo Code” and fill in MIGHIL

Cloudways Promo Code 2018 Exclusive

Cloudways: An Honest Review by Mighil

New to Cloudways managed cloud web hosting platform? Not sure if it’s the best choice for managing your WordPress site(s)? Read this blog post before investing your time and money on Cloudways.

TLDR; Yes, it is one of the best WordPress hosting platforms. Read the backstory, will you? Then we’ll jump to the review.


I’m very picky but straightforward when it comes to recommending stuff to friends and peers. I’ve tested a handful of dedicated Cloud hosting (VPS) services to date. I’ve been a DigitalOcean user for years before switching to BandWagonHOST and NameCheap hosting.

In love with BandWagonHOST

BandWagonHOST is quite cheap, and they provide OpenVZ & KiwiVM based plans. The downside? You need to have intermediate skills in managing virtual private servers. It’s not for the faint-hearted. I loved every bit of managing own server and setting up multiple WordPress sites on BandWagonHOST. It was fun while it lasted.

Leaving BandWagonHOST for NameCheap

I left BandWagonHOST just because the servers were getting slow for the mainland Chinese audience. I hosted a few projects for Chinese clients on BHW, but the performance got worse (even with a Cloudflare CDN). Things were going south, and I needed a quick solution. NameCheap came to the rescue, temporarily. Quite frankly, cPanel isn’t my thing, so I left NameCheap in a few days and got a 100% refund.

Leaving NameCheap for CloudWays

I visited my hometown in India last June for work related reason. Anvar at Mozilor suggested Cloudways and said they’re using Cloudways for years. I never thought of giving it a try since I was quite happy with my highly flexible BandWagonHOST server during that time.

His suggestion came on my mind while researching for a new host. Signed up and tested their service, really liked it, and now I’m with Cloudways.

Cloudways Platform, A Brief Introduction

What is CloudWays?

Unlike the widely used consumer-friendly options like Bluehost, HostGator or Siteground, Cloudways adds the DIY touch to the WordPress hosting scene by bringing together an innovative, scalable, budget-friendly managed hosting platform with rich features and 24x7x365 support. Their newly redesigned website looks sleek and comes with a neat UI.

CloudWays Features

With Cloudways, you can spin up “pay as you go” servers based on DigitalOcean, Vultr, Linode, Amazon AWS or Google Cloud Platform. Apart from that, Cloudways platform comes with handy performance-boosting technologies, including PHP7, Nginx, Redis, Memcached, Varnish, HTTP/2 and add-ons like DNS Made Easy, Rackspace Email, Elastic Email, CloudwaysCDN and more.

Cloudways Pricing

CloudWays Pricing

As you can see, Cloudways is a “Pay As You Go” platform; meaning, you will pay only for the resources you consume. You can either bind a credit card to automate the billing or use PayPal to add funds.

Base Packages

  • DigitalOcean – Starting at $10/month.
  • Linode – Starting at $12/month.
  • Vultr – Starting at $11/month.
  • Google Compute Engine – Starting at $34.17/month.
  • Amazon Web Service – Starting at $36.04/month.

Build A WP Site With Cloudways

3-Day Free Trial

You can Get Started for FREE using a valid email ID or with LinkedIn, GitHub or Google+ accounts. Keep in mind that they’ll ask for a working phone number (not a VoIP or Google Voice number) during registration. Also, note that you have to initiate a chat with customer support to start your 3-day free trial without a credit card.

Cloudways Activation

It took about 15 minutes for Cloudways to review my account. Here’s the screenshot of the conversation I had with Zeeshan at Cloudways.

Cloudways Chat

The customer support team will ask you to provide the email ID and website URL (not mandatory) for initial review. Later, they will send you a confirmation email to activate the account.

CloudWays Activation Email

The whole process was smooth, and you can create a new WordPress application right away for testing. “Need a Hand” button on the right side will open Help Center, which will be a goldmine for beginners to managed hosting.

CloudWays Start New Server

Click LAUNCH NOW after choosing the application and server details.

Why Choose Cloudways for WordPress

The Cloudways platform assures high-speed performance, managed security and expert support.

Above mentioned are the essential factors to look for when you’re purchasing a managed hosting service. Let’s look at the key features.

Server Speed & Performance

I have experience managing servers at a root level. Even though Cloudways doesn’t provide root access, they offer a wide array of performance boosters essential for WordPress applications.

Cloudways High-Speed Performance WordPress

Built-in Advanced Caches

Cloudways provide an optimized stack with ready to use caches including Memcached, Varnish, Nginx, and Redis to deliver expedited responses.

PHP 7 Ready Servers

All Cloudways server are PHP 7.x ready, which is known to be significantly faster than its predecessor.

Cloudways also give you the option to Control Core Services that allow your application(s) to run. You can optimize it now and then if you know what you’re doing.

CloudwaysCDN (New)

Cloudways Add-ons

Cloudways platform now comes with CloudwaysCDN, a new powerful and straightforward service that delivers superior performance and excellent global response times.

It can be integrated quickly and will significantly improve the speed of your WordPress website.

Auto-Healing Managed Cloud Servers

Auto-healing lessens your worries about website crashing or downtime. Cloudways is equipped with auto-healing and comes to site’s rescue.

Free WordPress Cache Plugin

Breeze by Cloudflare

Breeze; the WordPress plugin engineered by Cloudways team offers better WordPress performance boosting comparing to other cache and performance plugins.

Breeze WordPress plugin comes pre-installed on Cloudways.

Redis Support

Enabling Redis improves the performance of databases. Combined with Apache, Nginx, and Varnish; you’re looking at unbeatable performance.

Pre-configured PHP-FPM

PHP-FPM speeds up your website and improves the loading times of your PHP environment.

HTTP/2 Supported Servers (New)

Cloudways servers are HTTP/2 enabled which significantly increases the speed of communication between the web servers and clients.

Managed Security

Security is essential even if you are running a personal website or a professional blog that attracts a fair amount of traffic.

Cloudways platform is equipped with security practices to keep your servers safe.

Dedicated Firewalls

According to the Cloudways, all servers hosted by Cloudways are protected by OS-level firewalls that filter out malicious traffic and keep out the intruders.

1-Click Free SSL Installation

Cloudways platform comes with built-in Let’s Encrypt SSL. It also lets you add your SSL certificates easily with few clicks.

Get A 3-Days Trial for Cloudways

IP Whitelisting

The Cloudways platform lets you create a whitelist of IPs, making it easy to collaborate with networks or regions with unrestricted access to SSH and SFTP.

Regular Security Patching

Cloudflare claims they perform regular OS patches and firmware upgrades on servers. Security patches ensure a robust managed cloud server experience by avoiding vulnerabilities.

Two-Factor Authentication

Two-Factor Authentication (TFA)  adds an extra layer of safety to your Cloudways account.

Adding A WordPress Application

Adding a WordPress application is pretty straightforward on Cloudways.

Visit and click on + Add Application button to add a new app to the server.

Cloudways Console

You can set a primary domain, install Let’s Encrypt SSL certificate (including wildcard SSL) and optimize the site afterward. This console is pretty intuitive.

Read this before migrating a Cloudflare-enabled site to Cloudways

Backup, Clone/Staging and Migration


Cloudways Backup

You can perform an on-demand backup of your server via the console. Cloudways console also has an option to enable Local Backups; this will additionally create a downloadable copy of all the applications present on your server.

Clone App/Create Staging

Cloudways Staging Feature

Cloning/staging is a great beta feature Cloudways providing for its community. Cloudways lets you create staging apps and move data between staging and live applications.


Cloudways provides a decent migration tool to move the site from your old host to Cloudways platform. I’ve already written an article on this topic. You can read it here if you’re planning to migrate a website with SSL enabled.

Cloudways WordPress Migrator

Download CloudWays WordPress Migrator

Server and App Monitoring

Cloudways Server Monitoring

Cloudways provides performance graphs on various aspects of your server. They have partnered with Newrelic to offer built-in App Monitoring as well.

You can enable New Relic agent in the Services section of the console.

Customer Support

Yes, support should be a priority while choosing a cloud platform for WordPress. You don’t want to end up in the hands of a service provider that doesn’t respond to your queries and concerns promptly.

Cloudways customer support team are the best, period. You can talk to the Customer Success Team via live chat, or submit a ticket through the ticketing system. They’ve recently launched a community website as well.

You can access it here:

Their Knowlege Base is well-documented also. Most articles are beginner friendly and reminded me that of NameCheap’s KB articles.

Frequently Asked Questions

How good is Cloudways support?

Their Live Chat Support Team is available 24/7/365 for everyone. You can also create a Support Ticket. If you are an enterprise customer, you may contact [email protected]

Do I need a credit card to sign up for a free trial?

No. A credit card is not required. However, you’d only have three days to test the platform.

Can I have servers on separate pricing plans and different cloud providers?

Yes, you can launch multiple servers of the same or different cloud hosting plans and providers. It is entirely up to you.

How many applications can I launch on a single server

There is no restriction on the number of apps you can start on a single server.  However, plan well according to your server specifications.

What if I exceed my bandwidth?

Bandwidth is calculated based on the provider you select.

  • On Amazon and Google servers, bandwidth billing is on demand at all times.
  • Vultr charges $0.02 to $0.05 per GB for additional bandwidth usage (varies with data center region).
  • DigitalOcean charges $0.02 per GB for additional bandwidth usage.

How to cancel Cloudways account?

Cloudways is a “Pay as you go” platform. You can cancel the account by deleting your servers anytime, and you only need to pay for what you’ve used.


I am familiar with DigitalOcean, and I love using Cloudways as a platform because it’s flexible and transparent. I can add my clients for billing and even add team members for collaboration.

The platform is quite intuitive so that I can teach my clients’ very basic stuff without taking 100% responsibility for the project.

Cloudways is ideal for professional bloggers and small to medium-sized companies as well. If you are skeptical, go ahead and test the platform for three days.


Get Started With Cloudways for FREE!

Best PayPal Plugins for WordPress & WooCommerce

Popular PayPal Plugins for WordPress and WooCommerce
Affordable Cloud Platform – Run Multiple WP Sites – Get Started for FREE!

PayPal is undoubtedly one of the faster, safer ways to send money and make online payments. Most of the e-commerce websites and online merchants accept PayPal payments.

This blog post is for website owners, merchants and professional bloggers who prefer to receive online payments via PayPal. Without further ado, let’s look at the best PayPal plugins for WordPress sites and WooCommerce store.

Note: I strictly avoided reviewing old WordPress PayPal plugins, and those are not compatible with the latest version of WordPress.

PayPal Express Checkout Payment Gateway for WooCommerce

Are you running a WooCommerce store? Do you plan to integrate express checkout in the product pages? Then this is the plugin you need.  Developed by WebToffe, PayPal Express Checkout Payment Gateway for WooCommerce is a handy plugin that expands the standard PayPal payment option within WooCommerce.

With this PayPal plugin, your potential customer can use their credit card or PayPal balance to make order from cart page itself. This guarantees smoother experience for the users as they never have to leave your website for making payments.

Furthermore, the plugin is well-documented and costs $59.00 if you need the premium version. I highly recommend you to try the live demo before making the purchase.

PayPal for WooCommerce

Another plugin ideal for WooCommerce store owners. PayPal for WooCommerce makes it quick and easy for its users to integrate PayPal Express Checkout and Payments Pro into a WordPress / WooCommerce shopping cart system. This plugin fully supports WooCommerce Subscriptions and WooCommerce Payment Tokens as well.

Note: Payments Pro is PayPal’s complete online payment processing solution. By using their plugin, they can get you hooked up with PayPal Payments Pro with no monthly fee (U.S. and Canada merchants only.)

This free plugin has proper documentation, and they’re quite active on the support forum. It is recommended to read the reviews before installing.

Quick Paypal Payments

Quick PayPal Payments

Just as the name suggests, this free plugin is quite straightforward that lets you accept payments using a shortcode. The plugin now comes with features like Instant Payment Notifications, In-Context Checkout and GDPR compliancy options.

I searched a lot for WordPress PayPal plugins. Most were bulky and not meeting all my needs. I was building a website for a non-profit and needed to accept donations online with PayPal, with pre-defined or a custom amount. Sounds a simple need but a lot of PayPal plugins did not have this feature. I landed on this plugin and just fell in love with it!

Very easy to set up. Great customization of the form and its styles. Fantastic support from Graham who wrote this plugin! And a very affordable and deserving price. What else do you want in a plugin?

Thanks to Graham for building this awesome plugin!


The plugin is known for its straightforwardness, simplicity, and support. Therefore, give it a try if you’re looking a minimal solution.

PayPal Donations

Are you running a non-profit organization? Do you need funding for your blog? This plugin comes in handy if you plan to accept donations via PayPal. This Free plugin adds a PayPal donation shortcode and sidebar Widget to WordPress. The options menu lets you set up your PayPal ID and a few other optional settings.

PayPal Donations

The plugin is well documented and has options available for currency, localization of the button (16 languages), custom payment page style, and the return page. Furthermore, there are optional advanced settings available to fine tune the setup in specific scenarios.

Contact Form 7 – PayPal & Stripe Add-on

This is another great PayPal plugin that seamlessly integrates PayPal (and Stripe) with Contact Form 7. Each contact form on your website can have its own PayPal & Stripe settings. When a contact form is enabled with PayPal, and the user submits the form it will send the email (as usual) and auto redirects to PayPal.

PayPal & Stripe plugin works with both the old and new Contact Form 7 interface. It has got built-in support for 18 languages and 25 currencies. This plugin also allows PayPal testing through SandBox.

The Contact Form 7 – PayPal & Stripe Add-on plugin is intuitive, and the developer is quite active on the support forum to answer the queries.

The pro version of this PayPal plugin comes with handy features including:

  • Send Contact Form 7 email only if the PayPal payment is successful.
  • Link a form item to quantity – A form item can be a textbox, dropdown, radio button, etc. anything that is a number.
  • Link a form item to price – The price field can be linked to any form item. Pipes are supported to allow for drop-down text options for each price.
  • Link form items to option text fields – The text field can be linked to any form item.
  • Charge Fixed Tax
  • Charge Tax Rate
  • Charge Shipping & Handling per item
  • Hide Customer’s Custom Note Field
  • Choose a cancel payment URL per contact form
  • Choose a successful payment URL per contact form

Get the pro version of Contact Form 7 – PayPal & Stripe Add-on

I hope this article helped you find the best PayPal WordPress plugin that fit your needs. Do let me know if you’ve some other plugin recommendations. I’ll review and update here.

Need help?

Need a custom solution to integrate multiple payment gateways on your website? I can help you with the same and improve the growth strategy of your site. Contact me right away!

Migrate a Cloudflare-Enabled WordPress Site to CloudWays

Migrate a Cloudflare-Enabled WordPress Site to CloudWays

I’ve been using CloudWays for a while; it turns out to be a great platform to spin-up servers and manage applications efficiently. Quite frankly, they are one of the best hosting providers out there that promise quality managed-hosting solutions for affordable pricing.

This guide is only applicable to Cloudflare free SSL certificate users.

Previously, I wrote a quick guide on how to set up CloudWays Let’s Encrypt SSL and Cloudflare SSL together without throwing an infinite redirection loop or 5xx errors. Today, I’ll show you how to migrate a Cloudflare-enabled WordPress site to Cloudways seamlessly without hurting the SEO and HSTS settings.


Click here to skip the backstory and jump to the main steps.

Well, I decided to pen this guide because I’ve gone through the same situation previously. I had more than 10 WordPress instances on my BandwagonHOST server. They are fantastic, but I wanted dedicated Singapore servers, and DigitalOcean was the only reasonable option left.

However, there are limitations when you directly use DigitalOcean. It doesn’t come up with impressive end-user-friendly features as CloudWays does. On the top of that, I prefer to give dedicated access to my clients and add them as the team members. DigitalOcean can be too much for the client-side. CloudWays seems more flexible for clients with inter-mediate WordPress skills.

Hence I chose CloudWays and decided to move all the WordPress sites. I had to go through a few uninvited hiccups during the transition (damn infinite redirection loop).

Finally, I figured out a quick solution to fix these issues and make my website migrations an easy-peasy process.

Select Cloudflare in the WAF Module

Quite important. Do it before migrating your WordPress sites to CloudWays.

Log into the Cloudways Platform with your credentials. Then click on the Advanced tab in the Server Settings & Packages section under the Server Management area.

CloudWays Advanced Tab

Under the Advanced tab. Select CloudFlare under WAF Module and save the settings by clicking on Save Changes.

Install the Cloudflare Flexible SSL, Really Simple SSL Plugins on the Old Host

Doing this will promise 100% successful migration. I’m sure you’ve already installed these plugins on your WordPress site to avoid Cloudflare redirection loop. Do it if you haven’t.

Flexible SSL

This plugin is essential for enabling Flexible SSL on WordPress and will prevent infinite redirect loops when loading your Cloudways WordPress sites under CloudFlare’s Flexible SSL system.

Install the Cloudflare Flexible SSL Plugin

Download Cloudflare Flexible SSL Plugin.

Really simple SSL

This plugin makes sure your site is loading over https://all the time. It is essential to install this one as well.

Install really simple SSL Cloudflare

Download Really Simple SSL Plugin.

Turn off Cloudflare CDN, Point Your Domain & Generate Let’s Encrypt SSL

Next tip to make sure the site works well after migration. We can temporarily point the domain to new CloudWays host (server) for few minutes just to generate Let’s Encrypt SSL. We’re doing this to make sure the host won’t throw any hiccups after migration.

Why Should I Point My Domain to CloudWays?

It is not possible to create Let’s Encrypt SSL certificates in Cloudways platform while the CloudFlare CDN is active, so turn it off by clicking the Orange Cloud as shown in the image. The Grey Cloud means CloudFlare CDN is off.

Turning off Cloudflare CDN & Pointing The Domain

Turn off DNS as shown in the image below. Replace with your server’s IP.

Turn off Cloudflare CDN to generate CloudWays Let's Encrypt SSL Certificates

Now visit the CloudWays platform and fill in your PRIMARY DOMAIN in the Domain Management section. Save Changes afterward.

How to point your Domain to CloudWays

Generate Let’s Encrypt SSL Certificate

Now generate the Let’s Encrypt SSL certificate by accessing the SSL Certificate section. Be sure to create a Wildcard SSL Certificate and set a new CNAME record as suggested by CloudWays.

Generate SSL Cloudways

Save Changes and wait for CloudWays to generate Let’s Encrypt SSL certificate.

You can confirm the Let’s Encrypt SSL status by visiting the newly propagated WordPress site over https. Click on the padlock from the URL bar, and check detailed SSL certificate info.

Switch Back to The Old Host, Turn on Cloudflare CDN & Migrate

This process is dead simple. Just edit the A record and fill your old host’s IP address. Then turn on Cloudflare CDN.


Visit the old website, download and Install CloudWays WordPress Migrator. The plugin is quite intuitive, and it will do the rest.

Pro tip: Disable security plugins and add-ons before migrating. Doing so will make sure that the new host doesn’t get confused by your security settings. i.e. disable backend URL modifications just to be on the safe side. You can activate these plugins after migration.

Cloudways WordPress Migrator

Download CloudWays WordPress Migrator

Enable SSH Access & Generate Credentials

Enable SSH access within the Application Settings.

Enable SSH access CloudWays

Generate App Credentials also.

Enable SFTP CloudWays

Now enter the following details in the plugin interface to migrate:

  1. Enter any email address.
  2. Your Destination Site URL (fill in your domainname.tld with https enabled since we’ve already set the primary domain and generated SSL certificate in the CloudWays Application Settings interface).
  3. Enter your Database name.
  4. Enter your Server Public IP address.
  5. SFTP Username (for the particular app).
  6. SFTP Password.
  7. Agree to TOS and click on Migrate button to start migrating your website.

Here’s how it may look like:

Migrate Your Site to Cloudways

That’s about it. Good luck!


Here are my answers to the questions someone posted on Cloudflare community website.

Q. The actual migration itself is as simple as pointing the A record to the new domain, right?

A. No, refer to the guide.

Q. Will WordPress sort out the URL issues, images and such when the staging site’s URL gets changed? What steps do I need to take to not end up with problems and broken images?

A. No need to worry, just use the migrator plugin as suggested in the guide.

Q. How do I ensure that the SSL certificate works when the migration is done – shall I install the SSL already on the staging site?

A. Please refer to this section in the guide.

Q. I have the option to use Let’sEncrypt SSL’s automatically from Cloudways – shall I opt for this rather than the Cloudflare certificate? If so, how and when do I make this switch?

A. You should opt for both. Read my previous guide on how to set up CloudWays Let’s Encrypt SSL and Cloudflare SSL together.

Q. Do I create a new Cloudflare account for the staging site with a new SSL certificate?

A. You wouldn’t need a staging site at all. You can create a subdomain and point it to CloudWays if you’re too worried.

Q. Do I migrate the site without SSL certificate first and then only apply it once the domain migration is completed?

A. No need, just follow my instructions in this guide.

Q. How do I ensure that the HSTS settings don’t leave my site hanging, or people unable to reach the site?

A. It will work after the migration.

Q. SEO-wise, is there anything to consider during a migration?

A. None and no need to worry about SEO.

Need help?

Does this guide sound too much of a tech jargon? I can help you migrate your Cloudflare-enabled site to CloudWays host for the price of a cup of coffee. Contact me right away!

How to Add Typekit Fonts to A WordPress Website

How to Add Typekit Fonts to WordPress (Manually)

Let’s assume you’re not happy with the “wide range” of Google fonts.  This blog post will teach you how to add Typekit fonts to your WordPress site manually without using a plugin.

Typography Matters

Typography is all about adjusting the text within the design while creating compelling content. It provides an attractive appearance and preserves the aesthetic value of your content. It plays a vital role in setting the overall tone of your website and ensures a great user experience*.

Typography expresses personality and is a part of your identity
Read: 5 Reasons Why Typography Matters (External Link)

Why Adobe Typekit

Adobe Typekit is a subscription service for fonts which you can sync to your computer or use on a website. Instead of licensing individual fonts, you can sign up for the plan that best suits your needs and get a library of fonts from which to choose.

Why Use Typekit?

This blog post will teach you how to add Typekit fonts to your WordPress site manually.


  • You don’t need a third-party plugin to embed Typekit fonts in a WordPress website.
  • Intended Audience: Intermediate WP users.

Create a Kit ID

Visit, select a plan and create a font kit for your website. Ignore this step if you have got the Typekit CSS or JS code in handy. Creating a Kit is dead simple, and I’m not going to explain it here.

Create a Kit ID
Credit: Adobe Help Center

Note the specific Kit ID for the web project; We need the Kit ID for next part.

Open Theme Editor

Visit Appearance -> Editor and select the Theme Header (header.php) file. Replace fnw3sdq with your specific Typekit Kit ID.

<!-- BEGIN Typekit Fonts for WordPress --> 
<link rel="stylesheet" href=""> 
<!-- END Typekit Fonts for WordPress -->

Don’t forget to click Update File after editing.

Set Custom CSS Rules

Custom styling varies according to the WordPress theme you’re using. Visit Appearance -> Customizer and look for the Additional CSS section.

Here’s an example, just for reference:

h1, h2, h3, h4, h5, h6 {
text-transform: none;
font-family: "sofia-pro",sans-serif;
font-weight: 600;

body, button, input, select, textarea {
font-family: proxima-nova;
font-weight: 400;
text-transform: none;

The set of CSS rules will vary according to your preference. Happy styling!

Need help?

Does guide sounds too much of a tech jargon? I can help you set the Typekit font on your WordPress website for the price of a cup of coffee. Contact me right away!


  • Cover image:
  • *

How to Use Cloudflare And CloudWays SSL Together

How to Use Cloudflare And CloudWays SSL Together

Cloudways is undoubtedly a great managed web hosting service provider. Their one-click features are impeccable if you’re new to the whole hosting scene. They’re also good at providing documentation for all topics related to their platform and its features.

But, to be honest, there is no detailed or specific documentation on the “Cloudflare flexible/full/strict SSL + CloudWays SSL” subject. Things can go south if you enable Cloudflare flexible SSL and CloudWays’ free Let’sEncrypt certificates together without tweaking a few settings.

Learn How to Install Cloudflare and CloudWays SSL Together on a WordPress Site

Let’s see how we can successfully set up Cloudflare and CloudWays SSL together on a WordPress site without generating infinite redirection loops or 5xx errors.

Disclaimer: Backup or create a clone of your website before proceeding. Try this AT YOUR OWN RISK. I’ve tested this one on three sites (during migration), and it worked flawlessly.

Select Cloudflare in the WAF Module

Assuming that you’ve already added your site to Cloudflare and Cloudflare has issued a free SSL certificate (it takes up to 24 hours for the same), here’s what you should do next.

Log into the Cloudways Platform with your credentials. Then click on the Advanced tab in the Server Settings & Packages section under the Server Management area.

CloudWays Advanced Tab

Under the Advanced tab. Select CloudFlare under WAF Module and save the settings by clicking on Save Changes.

Turn off Cloudflare CDN to generate CloudWays Let’s Encrypt SSL Certificates

It is not possible to create Let’s Encrypt SSL certificates in Cloudways platform while the CloudFlare CDN is active, so turn it off by clicking the Orange Cloud as shown in the image. The Grey Cloud means CloudFlare CDN is off.

Turn off Cloudflare CDN to generate CloudWays Let's Encrypt SSL Certificates

Setup Primary Domain & Generate the Let’s Encrypt SSL

You know the drill, visit Cloudways platform, create an app, and set the primary domain in Domain Management.

Now generate the Let’s Encrypt SSL certificate by accessing the SSL Certificate section. Be sure to create a Wildcard SSL Certificate and set a new CNAME record as suggested by CloudWays.

Generate SSL Cloudways

Install the Cloudflare Flexible SSL, Really Simple SSL Plugins & Turn on Cloudflare SSL

Flexible SSL

This plugin is essential for enabling Flexible SSL on WordPress and will prevent infinite redirect loops when loading your Cloudways WordPress sites under CloudFlare’s Flexible SSL system.

Install the Cloudflare Flexible SSL Plugin

Download Cloudflare Flexible SSL Plugin.

Really simple SSL

This plugin makes sure your site is loading over https:// all the time. It is essential to install this one as well.

Install really simple SSL Cloudflare

Download Really Simple SSL Plugin.

Turn on Cloudflare CDN

Go ahead and turn on Cloudflare CDN after enabling the plugins listed above.

Enable Cloudflare CDN Cloudways

After the CloudFlare SSL is active, you can change it to Full Strict. It’s up to you.

Need help?

Does this guide sound too much of a tech jargon? I can help you fix the SSL certificate issue of your website for the price of a cup of coffee. Contact me right away!

Bulk Unfollow People on LinkedIn

Mass Bulk Unfollow People on LinkedIn (Updated 2018)

LAST UPDATED: January 02, 2019 | By Mighil

Yeah, LinkedIn is great. But, I don’t want to see what my connections have liked. This is not Facebook.

Ultimately, it’s their choice. The connections can do whatever they like.

Recently I decided to unfollow everyone and only follow the key-people. I did a quick google search and found an answer on Quora. It works on Chrome, and I’ll share it here:

Step 1: Visit this page on LinkedIn;

Step 2: Scroll down on the page so all the following profiles would load. You can scroll down a little and run the *script many times if you’re too lazy.

Step 3: Open Developer Tools in Chrome (Right Click -> Inspect). Switch to console tab.

Step 4: Paste the script below and type enter:

var buttons = $("button"),
interval = setInterval(function(){
var btn = $('.is-following');
console.log("Clicking:", btn);;
if (buttons.length === 0) {
}, 1000);
Bulk Unfollow People on LinkedIn
The script in action.

If the script breaks in the middle, reload the page and repeat the process until the following count reaches to zero and LinkedIn displays ‘Follow Fresh Perspectives.’

Bulk Unfollow People on LinkedIn

Good luck.

Feel free to add me as a connection on LinkedIn. You could unfollow me right away 😉