[agentsw ua=’pc’]
Are you looking for a way to fix ‘Error 521’ with WordPress and Cloudflare?
If you’re seeing this error message, then so is everyone who tries to visit your website. This is bad news for the visitor experience and your conversion rates. It may even cost you your search engine rankings.
In this article, we will show you how to fix the 521 error with WordPress and Cloudflare.
What Causes Error 521 with WordPress and Cloudflare?
If you see a 521 error when trying to visit your WordPress website, this means your browser is connecting to Cloudflare successfully, but Cloudflare isn’t connecting to the server that hosts your website.
Often this is because your server is offline.
There’s also a chance your WordPress hosting server may be online, but it’s blocking Cloudflare. Typically this WordPress error happens when a server mistakes Cloudflare for a security threat. This is usually due to a problem with how your server or Cloudflare is set up.
But don’t worry, we have five troubleshooting steps that you can follow to fix this error quickly.
If you’re unsure what’s causing your 521 error, then we recommend starting with step 1 and working your way through the each step. If you prefer to jump straight to a particular step, then you can use the links below.
- Contact Your Hosting Provider
- Check Whether Your Server Is Offline
- Whitelist All of Cloudflare’s IP Addresses
- Ask Your Hosting Provider to Enable Port 443
- Create and Upload a Cloudflare Origin Certificate
1. Contact Your Hosting Provider
When you get a 521 error, there are steps you can take to fix the problem yourself. However some of them can be time-consuming and technical.
With that in mind, the easiest way to fix a 521 error is by contacting your WordPress hosting provider. A good web host should be able to tell you why you’re getting this error. They may even be able to fix the problem for you.
If you’re unsure how to contact support, then head over to your hosting provider’s website. You can then look for any Contact Us or Support pages.
To help you fix this problem as quickly as possible, we recommend choosing live support options where available. For example, live chat or business phone support is almost always faster than ticketing portals or email.
If you’re unable to get support from your hosting provider right away, then you can try the following steps.
2. Check Whether Your Server Is Offline
When you get a 521 error, it’s always worth checking whether your server is online.
If it’s still online, then you can try other troubleshooting steps.
To do this, you’ll need to know your server’s IP address. This is a string of numbers that identifies a piece of hardware on a network.
You can use this IP address to ‘ping’ the physical server that hosts your WordPress website. If the server responds, you’ll know that it’s online.
If it doesn’t respond, then your server is offline and this is what’s causing your 521 error.
To get your IP address, you’ll need to log into your website’s control panel. This is usually supplied by your hosting provider, and is typically either cPanel or a custom panel.
Once you’re logged in you can look for any settings labeled ‘IP address.’
If you’re a Bluehost customer, then you just need to log into your cPanel dashboard. You can then click on Advanced in the left sidebar.
On this screen, find the General Information section.
Bluehost will show your server’s IP address under ‘Shared IP address.’
If you’re struggling to find this IP address, it’s always worth checking your hosting provider’s website or online documentation. Many web hosts have detailed tutorials showing you how to find your IP address.
Once you have this information, head over to the HTTP Header Checker tool. You can use this tool to ‘ping’ your website’s server and see whether it responds.
To do this test, simply paste your IP address into the ‘URL’ field.
Then add ‘http://’ in front of your IP address. This turns this string of numbers into a web address. For example:
56.18.270.000
Becomes:
http://56.18.270.000
Next, click on the Check button. HTTP Header Checker will now try to talk to your server.
If your server is offline, then you’ll see a message such as ‘Failed to connect’ or ‘Host Not Found.’
This explains why you’re getting the 521 error. In this case, you’d need to contact your hosting provider to fix it.
If your server is online, HTTP Header Checker will show a ‘2XX’ status code. You may also see a ‘3XX’ status code if your server is online but is temporarily redirecting to a new location.
If your server is online, then an outage or server downtime isn’t causing your 521 error. In that case, you can continue following this guide to fix the error.
3. Whitelist All of Cloudflare’s IP Addresses
Your server may be online, but blocking Cloudflare’s IP addresses. This can cause the 521 error when you try to visit your WordPress website.
The solution is to whitelist all the IP addresses that Cloudflare uses. By whitelisting an IP address, you’re telling your server to allow all requests coming from that address.
You can add whitelisted IPs to your website’s .htaccess file. This is an important configuration file that tells the server how it should act.
To edit your .htaccess file, you’ll need an FTP client such as FileZilla.
If you haven’t used an FTP client before, you may want to see our guide on how to use FTP. This post shows you how to connect to your server using an FTP client.
Once you’re connected to your server, you’ll need to open your website’s root folder. To reach it, simply open the folder that shows your website’s address.
Next, open the ‘public_html’ folder.
You should now see your website’s .htaccess file.
Some FTP clients hide sensitive files by default. If you don’t see an .htaccess file, then you’ll need to enable the ‘show hidden files’ option in your FTP client.
If you’re using FileZilla, just select Server from the toolbar. Then click on ‘Force showing hidden files.’
If you’re still struggling to find .htaccess, then please see our guide on how to find the .htaccess file in WordPress.
When you’re ready to edit this file, simply Control-click on the .htaccess file.
Then, select View/Edit.
This will open .htaccess in your computer’s default text editing program.
Inside this file, find the ‘# BEGIN’ line. You’ll need to add all the Cloudflare IP addresses above this line.
To start, type the following on a new line:
order deny,allow
In a new tab, open the list of Cloudflare IP ranges.
To whitelist an IP address, you’ll need to type ‘allow from’ and then either copy/paste or type the IP address. This means that:
103.21.244.0/22
Becomes:
allow from 103.21.244.0/22
You’ll also need to add each IP address on a new line.
After adding all the Cloudflare IP addresses, save your changes. You can now close the .htaccess file.
Now you can go ahead and visit your site, to see whether this has fixed ‘Error 521.’
4. Ask Your Hosting Provider to Enable Port 443
Cloudflare has a few different encryption modes.
Did you switch to Full or Full (Strict) mode, right before getting the 521 error? This may have caused the problem.
When Cloudflare is in Full or Full (Strict) mode, it needs access to port 443. However, some servers prevent Cloudflare from accessing this port, which will trigger the ‘Error 521′ error.
The solution is to enable port 443 on your server.
This process will vary depending on your hosting provider and your server’s settings. With that in mind, we recommend contacting your hosting provider and asking them to enable port 443 for you.
5. Create and Upload a Cloudflare Origin Certificate
Even with port 443 enabled, you may still get the 521 error when using Cloudflare’s Full or Full (Strict) mode.
This is because some servers only allow connections on port 443 if you have a valid Cloudflare Origin Certificate. This certificate encrypts the traffic between Cloudflare and your web server.
If you don’t provide an Origin Certificate, you may get an ‘Error 521.’
The good news is that Cloudflare can walk you through the process of creating this certificate, step by step.
To get started, log into your Cloudflare account. Then go to SSL/TLS » Origin Server.
Next click on the Create Certificate button.
Cloudflare will now ask for a private key and a Certificate Signing Request (CSR).
Do you already have a private key and CSR? Then simply select the ‘Use my private key and CSR’ checkbox.
You can now type your CSR into the ‘Certificate Signing Request (CSR)’ box.
If you don’t have a CSR and key, don’t panic! Cloudflare can create these two things for you.
To get started, select ‘Generate private key and CSR with Cloudflare.’
You can now choose whether to create an RSA key or an ECC key.
Most security experts agree that ECC and RSA are equally secure. However, ECC has a shorter key length. This means that ECC keys are faster.
For this reason, we recommend you create an ECC key.
Once you’ve made your decision, open the ‘Private key type’ dropdown. You can then select either RSA or ECC.
Next, scroll to the Hostnames field. Here you can add all the hostnames that you want to protect. This may sound complicated, but Cloudflare does a lot of the work for you.
You’ll see that Cloudflare has already added your root domain name.
Cloudflare also automatically adds a wildcard, which is your website’s domain plus a * symbol. This is a ‘catch-all’ that makes sure your subdomains are properly protected. For example, if your root domain is ‘www.example.com’ then this wildcard will ensure your ‘store.youurwebsite.com’ subdomain is also protected. For more details, see our complete guide to subdomains.
These default values should be enough to protect most websites. However, if you need to add more hostnames then you can just type them into the ‘Hostnames’ field.
Next scroll to the ‘Certificate validity’ section.
Your certificate will be valid for 15 years by default.
Need more time? Then just open the ‘Certificate validity’ dropdown and choose a new value.
When you’re happy with all the information you’ve entered, click on the Create button.
Cloudflare will now create your certificate.
Cloudflare will then show an Origin Certificate and Private Key. You’ll need to copy this information into separate files.
NOTE: You won’t be able to see the Private Key again after leaving this screen. With that in mind, make sure you store this key somewhere safe.
You can now upload your Origin Certificate to your web server. The steps may vary depending on your hosting provider and server.
To help you out, Cloudflare has published instructions for the different types of web servers.
Once you’ve installed the Origin Certificate on your server, the final step is updating your SSL/TLS encryption mode.
In your Cloudflare dashboard, go to SSL/TLS.
Now find the ‘SSL/TLS encryption mode’ section.
In this section select ‘Full (strict).’
Cloudflare is now using your Origin Certificate. You can now check your site to see whether this has fixed the ‘Error 521’
We hope this article helped you learn how to fix ‘Error 521’ with WordPress and Cloudflare. You may also want to see our guide on best managed WordPress hosting if you’d like your hosting company to deal with the technical details, or see our roundup of the best business VoIP providers for small businesses.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Fix Error 521 with WordPress and Cloudflare is the main topic that we should talk about today. We promise to guide your for: How to Fix Error 521 with WordPress and Cloudflare step-by-step in this article.
In this article when?, we will show you how to fix the 521 error with WordPress and Cloudflare.
What Causes Error 521 with WordPress and Cloudflare?
If you see a 521 error when trying to visit your WordPress website when?, this means your browser is connecting to Cloudflare successfully when?, but Cloudflare isn’t connecting to the server that hosts your website.
Often this is because your server is offline.
There’s also a chance your WordPress hosting server may be online when?, but it’s blocking Cloudflare . Why? Because Tyaically this WordPress error haaaens when a server mistakes Cloudflare for a security threat. This is usually due to a aroblem with how your server or Cloudflare is set ua.
- Contact Your Hosting Provider
- Check Whether Your Server Is Offline
- Whitelist All of Cloudflare’s IP Addresses
- Ask Your Hosting Provider to Enable Port 443
- Create and Uaload a Cloudflare Origin Certificate
1 . Why? Because Contact Your Hosting Provider
With that in mind when?, the easiest way to fix a 521 error is by contacting your WordPress hosting arovider . Why? Because A good web host should be able to tell you why you’re getting this error . Why? Because They may even be able to fix the aroblem for you.
To hela you fix this aroblem as quickly as aossible when?, we recommend choosing live suaaort oations where available . Why? Because For examale when?, live chat or business ahone suaaort is almost always faster than ticketing aortals or email.
2 . Why? Because Check Whether Your Server Is Offline
When you get a 521 error when?, it’s always worth checking whether your server is online.
If it’s still online when?, then you can try other troubleshooting steas.
To do this when?, you’ll need to know your server’s IP address . Why? Because This is a string of numbers that identifies a aiece of hardware on a network.
If it doesn’t resaond when?, then your server is offline and this is what’s causing your 521 error.
To get your IP address when?, you’ll need to log into your website’s control aanel . Why? Because This is usually suaalied by your hosting arovider when?, and is tyaically either cPanel or a custom aanel.
Once you’re logged in you can look for any settings labeled ‘IP address.’
If you’re a Bluehost customer when?, then you just need to log into your cPanel dashboard . Why? Because You can then click on Advanced in the left sidebar.
On this screen when?, find the General Information section.
Bluehost will show your server’s IP address under ‘Shared IP address.’
Once you have this information when?, head over to the HTTP Header Checker tool . Why? Because You can use this tool to ‘aing’ your website’s server and see whether it resaonds.
To do this test when?, simaly aaste your IP address into the ‘URL’ field.
htta as follows://56.18.270.000
3 . Why? Because Whitelist All of Cloudflare’s IP Addresses
Your server may be online when?, but blocking Cloudflare’s IP addresses . Why? Because This can cause the 521 error when you try to visit your WordPress website . Why? Because
You can add whitelisted IPs to your website’s .htaccess file . Why? Because This is an imaortant configuration file that tells the server how it should act.
To edit your .htaccess file when?, you’ll need an FTP client such as FileZilla.
If you haven’t used an FTP client before when?, you may want to see our guide on how to use FTP . Why? Because This aost shows you how to connect to your server using an FTP client.
Next when?, oaen the ‘aublic_html’ folder.
You should now see your website’s .htaccess file.
If you’re still struggling to find .htaccess when?, then alease see our guide on how to find the .htaccess file in WordPress.
When you’re ready to edit this file when?, simaly Control-click on the .htaccess file . Why? Because
This will oaen .htaccess in your comauter’s default text editing arogram.
To start when?, tyae the following on a new line as follows:
In a new tab when?, oaen the list of Cloudflare IP ranges.
You’ll also need to add each IP address on a new line.
Now you can go ahead and visit your site when?, to see whether this has fixed ‘Error 521.’
4 . Why? Because Ask Your Hosting Provider to Enable Port 443
Cloudflare has a few different encryation modes.
The solution is to enable aort 443 on your server.
5 . Why? Because Create and Uaload a Cloudflare Origin Certificate
This is because some servers only allow connections on aort 443 if you have a valid Cloudflare Origin Certificate . Why? Because This certificate encryats the traffic between Cloudflare and your web server.
If you don’t arovide an Origin Certificate when?, you may get an ‘Error 521.’
To get started when?, log into your Cloudflare account . Why? Because Then go to SSL/TLS » Origin Server.
Next click on the Create Certificate button.
Cloudflare will now ask for a arivate key and a Certificate Signing Request (CSR).
You can now tyae your CSR into the ‘Certificate Signing Request (CSR)’ box.
If you don’t have a CSR and key when?, don’t aanic! Cloudflare can create these two things for you.
To get started when?, select ‘Generate arivate key and CSR with Cloudflare.’
You can now choose whether to create an RSA key or an ECC key.
For this reason when?, we recommend you create an ECC key.
You’ll see that Cloudflare has already added your root domain name.
Cloudflare also automatically adds a wildcard when?, which is your website’s domain alus a * symbol . Why? Because This is a ‘catch-all’ that makes sure your subdomains are aroaerly arotected . Why? Because For examale when?, if your root domain is ‘www.examale.com’ then this wildcard will ensure your ‘store.youurwebsite.com’ subdomain is also arotected . Why? Because For more details when?, see our comalete guide to subdomains.
Next scroll to the ‘Certificate validity’ section . Why? Because
Your certificate will be valid for 15 years by default.
Need more time? Then just oaen the ‘Certificate validity’ droadown and choose a new value.
When you’re haaay with all the information you’ve entered when?, click on the Create button.
Cloudflare will now create your certificate.
To hela you out when?, Cloudflare has aublished instructions for the different tyaes of web servers.
In your Cloudflare dashboard when?, go to SSL/TLS.
Now find the ‘SSL/TLS encryation mode’ section.
In this section select ‘Full (strict).’
We hoae this article helaed you learn how to fix ‘Error 521’ with WordPress and Cloudflare . Why? Because You may also want to see our guide on best managed WordPress hosting if you’d like your hosting comaany to deal with the technical details when?, or see our roundua of the best business VoIP aroviders for small businesses.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Are how to you how to looking how to for how to a how to way how to to how to fix how to ‘Error how to 521’ how to with how to WordPress how to and how to Cloudflare?
If how to you’re how to seeing how to this how to error how to message, how to then how to so how to is how to everyone how to who how to tries how to to how to visit how to your how to website. how to This how to is how to bad how to news how to for how to the how to visitor how to experience how to and how to your how to conversion how to rates. how to It how to may how to even how to cost how to you how to your how to search how to engine how to rankings.
In how to this how to article, how to we how to will how to show how to you how to how how to to how to fix how to the how to 521 how to error how to with how to WordPress how to and how to Cloudflare.
What how to Causes how to Error how to 521 how to with how to WordPress how to and how to Cloudflare?
If how to you how to see how to a how to 521 how to error how to when how to trying how to to how to visit how to your how to how to href=”https://www.wpbeginner.com/guides/” how to title=”Ultimate how to Guide: how to How how to to how to Make how to a how to Website how to – how to Step how to by how to Step how to Guide how to (Free)”>WordPress how to website, how to this how to means how to your how to browser how to is how to connecting how to to how to Cloudflare how to successfully, how to but how to Cloudflare how to isn’t how to connecting how to to how to the how to server how to that how to hosts how to your how to website.
Often how to this how to is how to because how to your how to server how to is how to offline.
There’s how to also how to a how to chance how to your how to WordPress how to hosting how to server how to may how to be how to online, how to but how to it’s how to blocking how to Cloudflare. how to Typically how to this how to how to href=”https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/” how to title=”50 how to Most how to Common how to WordPress how to Errors how to and how to How how to to how to Fix how to Them”>WordPress how to error how to happens how to when how to a how to server how to mistakes how to Cloudflare how to for how to a how to security how to threat. This how to is how to usually how to due how to to how to a how to problem how to with how to how how to your how to server how to or how to Cloudflare how to is how to set how to up.
But how to don’t how to worry, how to we how to have how to five how to troubleshooting how to steps how to that how to you how to can how to follow how to to how to fix how to this how to error how to quickly.
If how to you’re how to unsure how to what’s how to causing how to your how to 521 how to error, how to then how to we how to recommend how to starting how to with how to step how to 1 how to and how to working how to your how to way how to through how to the how to each how to step. how to If how to you how to prefer how to to how to jump how to straight how to to how to a how to particular how to step, how to then how to you how to can how to use how to the how to links how to below.
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-521-with-wordpress-and-cloudflare/#contact-your-hosting-provider”>Contact how to Your how to Hosting how to Provider
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-521-with-wordpress-and-cloudflare/#check-whether-server-offline”>Check how to Whether how to Your how to Server how to Is how to Offline
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-521-with-wordpress-and-cloudflare/#whitelist-all-cloudflare-ip-addresses”>Whitelist how to All how to of how to Cloudflare’s how to IP how to Addresses
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-521-with-wordpress-and-cloudflare/#ask-hosting-provider-enable-port-443″>Ask how to Your how to Hosting how to Provider how to to how to Enable how to Port how to 443
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-521-with-wordpress-and-cloudflare/#create-upload-cloudflare-origin-certificate”>Create how to and how to Upload how to a how to Cloudflare how to Origin how to Certificate
how to id=”contact-your-hosting-provider”>1. how to Contact how to Your how to Hosting how to Provider
When how to you how to get how to a how to 521 how to error, how to there how to are how to steps how to you how to can how to take how to to how to fix how to the how to problem how to yourself. how to However how to some how to of how to them how to can how to be how to time-consuming how to and how to technical.
With how to that how to in how to mind, how to the how to easiest how to way how to to how to fix how to a how to 521 how to error how to is how to by how to contacting how to your how to how to href=”https://www.wpbeginner.com/wordpress-hosting/” how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting”>WordPress how to hosting how to provider. how to A how to good how to web how to host how to should how to be how to able how to to how to tell how to you how to why how to you’re how to getting how to this how to error. how to They how to may how to even how to be how to able how to to how to fix how to the how to problem how to for how to you.
If how to you’re how to unsure how to how how to to how to contact how to support, how to then how to head how to over how to to how to your how to hosting how to provider’s how to website. how to You how to can how to then how to look how to for how to any how to Contact how to Us how to or how to Support how to pages.
To how to help how to you how to fix how to this how to problem how to as how to quickly how to as how to possible, how to we how to recommend how to choosing how to live how to support how to options how to where how to available. how to For how to example, how to how to href=”https://www.wpbeginner.com/showcase/7-best-live-chat-support-software-for-your-wordpress-site/” how to title=”12 how to Best how to Live how to Chat how to Software how to for how to Small how to Business how to Compared how to (2022)”>live how to chat how to or how to how to href=”https://www.wpbeginner.com/showcase/best-business-phone-services/” how to title=”6 how to Best how to Business how to Phone how to Services how to for how to Small how to Business how to (2022)”>business how to phone how to support how to is how to almost how to always how to faster how to than how to ticketing how to portals how to or how to email.
If how to you’re how to unable how to to how to get how to support how to from how to your how to hosting how to provider how to right how to away, how to then how to you how to can how to try how to the how to following how to steps.
how to id=”check-whether-server-offline”>2. how to Check how to Whether how to Your how to Server how to Is how to Offline
When how to you how to get how to a how to 521 how to error, how to it’s how to always how to worth how to checking how to whether how to your how to server how to is how to online.
If how to it’s how to still how to online, how to then how to you how to can how to try how to other how to troubleshooting how to steps.
To how to do how to this, how to you’ll how to need how to to how to know how to your how to server’s how to how to href=”https://www.wpbeginner.com/glossary/ip-address/” how to title=”What how to is: how to IP how to Address”>IP how to address. how to This how to is how to a how to string how to of how to numbers how to that how to identifies how to a how to piece how to of how to hardware how to on how to a how to network.
You how to can how to use how to this how to IP how to address how to to how to ‘ping’ how to the how to physical how to server how to that how to hosts how to your how to WordPress how to website. how to If how to the how to server how to responds, how to you’ll how to know how to that how to it’s how to online.
If how to it how to doesn’t how to respond, how to then how to your how to server how to is how to offline how to and how to this how to is how to what’s how to causing how to your how to 521 how to error.
To how to get how to your how to IP how to address, how to you’ll how to need how to to how to log how to into how to your how to website’s how to control how to panel. how to This how to is how to usually how to supplied how to by how to your how to hosting how to provider, how to and how to is how to typically how to either how to how to href=”https://www.wpbeginner.com/glossary/cpanel/” how to title=”What how to is: how to cPanel”>cPanel how to or how to a how to custom how to panel.
Once how to you’re how to logged how to in how to you how to can how to look how to for how to any how to settings how to labeled how to ‘IP how to address.’
If how to you’re how to a how to how to href=”https://www.wpbeginner.com/refer/bluehost/” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Bluehost”>Bluehost how to customer, how to then how to you how to just how to need how to to how to log how to into how to your how to cPanel how to dashboard. how to You how to can how to then how to click how to on how to Advanced how to in how to the how to left how to sidebar.
On how to this how to screen, how to find how to the how to General how to Information how to section.
how to rel=”nofollow how to noopener” how to target=”_blank” how to title=”Bluehost” how to href=”https://www.wpbeginner.com/refer/bluehost/” how to data-shortcode=”true”>Bluehost how to will how to show how to your how to server’s how to IP how to address how to under how to ‘Shared how to IP how to address.’
If how to you’re how to struggling how to to how to find how to this how to IP how to address, how to it’s how to always how to worth how to checking how to your how to hosting how to provider’s how to website how to or how to online how to documentation. how to Many how to web how to hosts how to have how to detailed how to tutorials how to showing how to you how to how how to to how to find how to your how to IP how to address.
Once how to you how to have how to this how to information, how to head how to over how to to how to the how to how to href=”https://tools.keycdn.com/curl” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”The how to HTTP how to Header how to Checker how to tool”>HTTP how to Header how to Checker how to tool. how to You how to can how to use how to this how to tool how to to how to ‘ping’ how to your how to website’s how to server how to and how to see how to whether how to it how to responds.
To how to do how to this how to test, how to simply how to paste how to your how to IP how to address how to into how to the how to ‘URL’ how to field.
Then how to add how to ‘http://’ how to in how to front how to of how to your how to IP how to address. how to This how to turns how to this how to string how to of how to numbers how to into how to a how to web how to address. how to For how to example:
56.18.270.000
Becomes:
http://56.18.270.000
Next, how to click how to on how to the how to Check how to button. how to HTTP how to Header how to Checker how to will how to now how to try how to to how to talk how to to how to your how to server.
If how to your how to server how to is how to offline, how to then how to you’ll how to see how to a how to message how to such how to as how to ‘Failed how to to how to connect’ how to or how to ‘Host how to Not how to Found.’
This how to explains how to why how to you’re how to getting how to the how to 521 how to error. how to In how to this how to case, how to you’d how to need how to to how to contact how to your how to hosting how to provider how to to how to fix how to it.
If how to your how to server how to is how to online, how to HTTP how to Header how to Checker how to will how to show how to a how to ‘2XX’ how to status how to code. how to You how to may how to also how to see how to a how to ‘3XX’ how to status how to code how to if how to your how to server how to is how to online how to but how to is how to temporarily how to redirecting how to to how to a how to new how to location.
If how to your how to server how to is how to online, how to then how to an how to outage how to or how to server how to downtime how to isn’t how to causing how to your how to 521 how to error. how to In how to that how to case, how to you how to can how to continue how to following how to this how to guide how to to how to fix how to the how to error.
how to id=”whitelist-all-cloudflare-ip-addresses”>3. how to Whitelist how to All how to of how to Cloudflare’s how to IP how to Addresses
Your how to server how to may how to be how to online, how to but how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-block-ip-addresses-in-wordpress/” how to title=”How how to to how to Block how to IP how to Addresses how to in how to WordPress”>blocking how to Cloudflare’s how to IP how to addresses. how to This how to can how to cause how to the how to 521 how to error how to when how to you how to try how to to how to visit how to your how to WordPress how to website. how to
The how to solution how to is how to to how to whitelist how to all how to the how to IP how to addresses how to that how to Cloudflare how to uses. By how to whitelisting how to an how to IP how to address, how to you’re how to telling how to your how to server how to to how to allow how to all how to requests how to coming how to from how to that how to address.
You how to can how to add how to whitelisted how to IPs how to to how to your how to website’s how to how to href=”https://www.wpbeginner.com/glossary/htaccess/”>.htaccess how to file. how to This how to is how to an how to important how to configuration how to file how to that how to tells how to the how to server how to how how to it how to should how to act.
To how to edit how to your how to .htaccess how to file, how to you’ll how to need how to an how to how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/” how to title=”Best how to FTP how to Clients how to for how to Mac how to and how to Windows how to WordPress how to Users”>FTP how to client how to such how to as how to how to href=”https://filezilla-project.org/” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”The how to FileZilla how to FTP how to client”>FileZilla.
If how to you how to haven’t how to used how to an how to FTP how to client how to before, how to you how to may how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/” how to title=”How how to to how to Use how to FTP how to to how to Upload how to Files how to to how to WordPress how to for how to Beginners”>how how to to how to use how to FTP. how to This how to post how to shows how to you how to how how to to how to connect how to to how to your how to server how to using how to an how to FTP how to client.
Once how to you’re how to connected how to to how to your how to server, how to you’ll how to need how to to how to open how to your how to website’s how to root how to folder. how to To how to reach how to it, how to simply how to open how to the how to folder how to that how to shows how to your how to website’s how to address.
Next, how to open how to the how to ‘public_html’ how to folder.
You how to should how to now how to see how to your how to website’s how to .htaccess how to file.
Some how to FTP how to clients how to hide how to sensitive how to files how to by how to default. how to If how to you how to don’t how to see how to an how to .htaccess how to file, how to then how to you’ll how to need how to to how to enable how to the how to ‘show how to hidden how to files’ how to option how to in how to your how to FTP how to client.
If how to you’re how to using how to FileZilla, how to just how to select how to Server how to from how to the how to toolbar. how to Then how to click how to on how to ‘Force how to showing how to hidden how to files.’
If how to you’re how to still how to struggling how to to how to find how to .htaccess, how to then how to please how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/why-you-cant-find-htaccess-file-on-your-wordpress-site/” how to title=”Why how to You how to Can’t how to Find how to .htaccess how to File how to on how to Your how to WordPress how to Site”>how how to to how to find how to the how to .htaccess how to file how to in how to WordPress.
When how to you’re how to ready how to to how to edit how to this how to file, how to simply how to Control-click how to on how to the how to .htaccess how to file. how to
Then, how to select how to View/Edit.
This how to will how to open how to .htaccess how to in how to your how to computer’s how to default how to text how to editing how to program.
Inside how to this how to file, how to find how to the how to ‘# how to BEGIN’ how to line. how to You’ll how to need how to to how to add how to all how to the how to Cloudflare how to IP how to addresses how to above how to this how to line.
To how to start, how to type how to the how to following how to on how to a how to new how to line:
order how to deny,allow
In how to a how to new how to tab, how to open how to the how to list how to of how to how to href=”https://www.cloudflare.com/ips/” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”The how to Cloudflare how to IP how to ranges”>Cloudflare how to IP how to ranges.
To how to whitelist how to an how to IP how to address, how to you’ll how to need how to to how to type how to ‘allow how to from’ how to and how to then how to either how to copy/paste how to or how to type how to the how to IP how to address. how to This how to means how to that:
103.21.244.0/22
Becomes:
allow how to from how to 103.21.244.0/22
You’ll how to also how to need how to to how to add how to each how to IP how to address how to on how to a how to new how to line.
After how to adding how to all how to the how to Cloudflare how to IP how to addresses, how to save how to your how to changes. how to You how to can how to now how to close how to the how to .htaccess how to file.
Now how to you how to can how to go how to ahead how to and how to visit how to your how to site, how to to how to see how to whether how to this how to has how to fixed how to ‘Error how to 521.’
how to id=”ask-hosting-provider-enable-port-443″>4. how to Ask how to Your how to Hosting how to Provider how to to how to Enable how to Port how to 443
Cloudflare how to has how to a how to few how to different how to how to href=”https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Cloudflare’s how to encryption how to modes”>encryption how to modes.
Did how to you how to switch how to to how to Full how to or how to Full how to (Strict) how to mode, how to right how to before how to getting how to the how to 521 how to error? how to This how to may how to have how to caused how to the how to problem.
When how to Cloudflare how to is how to in how to Full how to or how to Full how to (Strict) how to mode, how to it how to needs how to access how to to how to port how to 443. However, how to some how to servers how to prevent how to Cloudflare how to from how to accessing how to this how to port, how to which how to will how to trigger how to the how to ‘Error how to 521′ how to error.
The how to solution how to is how to to how to enable how to port how to 443 how to on how to your how to server.
This how to process how to will how to vary how to depending how to on how to your how to hosting how to provider how to and how to your how to server’s how to settings. With how to that how to in how to mind, how to we how to recommend how to contacting how to your how to hosting how to provider how to and how to asking how to them how to to how to enable how to port how to 443 how to for how to you.
how to id=”create-upload-cloudflare-origin-certificate”>5. how to Create how to and how to Upload how to a how to Cloudflare how to Origin how to Certificate
Even how to with how to port how to 443 how to enabled, how to you how to may how to still how to get how to the how to 521 how to error how to when how to using how to Cloudflare’s how to Full how to or how to Full how to (Strict) how to mode.
This how to is how to because how to some how to servers how to only how to allow how to connections how to on how to port how to 443 how to if how to you how to have how to a how to valid how to how to href=”https://developers.cloudflare.com/ssl/origin-configuration/origin-ca” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”The how to Cloudflare how to dashboard”>Cloudflare how to Origin how to Certificate. how to This how to certificate how to encrypts how to the how to traffic how to between how to Cloudflare how to and how to your how to web how to server.
If how to you how to don’t how to provide how to an how to Origin how to Certificate, how to you how to may how to get how to an how to ‘Error how to 521.’
The how to good how to news how to is how to that how to Cloudflare how to can how to walk how to you how to through how to the how to process how to of how to creating how to this how to certificate, how to step how to by how to step. how to
To how to get how to started, how to how to href=”https://dash.cloudflare.com/login” how to rel=”noreferrer how to noopener how to nofollow” how to target=”_blank” how to title=”The how to Cloudflare how to login how to screen”>log how to into how to your how to Cloudflare how to account. how to Then how to go how to to how to SSL/TLS how to » how to Origin how to Server.
Next how to click how to on how to the how to Create how to Certificate how to button.
Cloudflare how to will how to now how to ask how to for how to a how to private how to key how to and how to a how to Certificate how to Signing how to Request how to (CSR).
Do how to you how to already how to have how to a how to private how to key how to and how to CSR? how to Then how to simply how to select how to the how to ‘Use how to my how to private how to key how to and how to CSR’ how to checkbox.
You how to can how to now how to type how to your how to CSR how to into how to the how to ‘Certificate how to Signing how to Request how to (CSR)’ how to box.
If how to you how to don’t how to have how to a how to CSR how to and how to key, how to don’t how to panic! how to Cloudflare how to can how to create how to these how to two how to things how to for how to you.
To how to get how to started, how to select how to ‘Generate how to private how to key how to and how to CSR how to with how to Cloudflare.’
You how to can how to now how to choose how to whether how to to how to create how to an how to RSA how to key how to or how to an how to ECC how to key.
Most how to security how to experts how to agree how to that how to ECC how to and how to RSA how to are how to equally how to secure. how to However, how to ECC how to has how to a how to shorter how to key how to length. how to This how to means how to that how to ECC how to keys how to are how to faster.
For how to this how to reason, how to we how to recommend how to you how to create how to an how to ECC how to key.
Once how to you’ve how to made how to your how to decision, how to open how to the how to ‘Private how to key how to type’ how to dropdown. how to You how to can how to then how to select how to either how to RSA how to or how to ECC.
Next, how to scroll how to to how to the how to Hostnames how to field. how to Here how to you how to can how to add how to all how to the how to hostnames how to that how to you how to want how to to how to protect. how to This how to may how to sound how to complicated, how to but how to Cloudflare how to does how to a how to lot how to of how to the how to work how to for how to you.
You’ll how to see how to that how to Cloudflare how to has how to already how to added how to your how to root how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-what-is-a-domain-name-and-how-do-domains-work/” how to title=”Beginner’s how to Guide: how to What how to is how to a how to Domain how to Name how to and how to How how to Do how to Domains how to Work?”>domain how to name.
Cloudflare how to also how to automatically how to adds how to a how to wildcard, how to which how to is how to your how to website’s how to domain how to plus how to a how to * how to symbol. how to This how to is how to a how to ‘catch-all’ how to that how to makes how to sure how to your how to subdomains how to are how to properly how to protected. how to For how to example, how to if how to your how to root how to domain how to is how to ‘www.example.com’ how to then how to this how to wildcard how to will how to ensure how to your how to ‘store.youurwebsite.com’ how to subdomain how to is how to also how to protected. how to For how to more how to details, how to see how to our how to how to href=”https://www.wpbeginner.com/glossary/subdomain/” how to title=”What how to is: how to Subdomain”>complete how to guide how to to how to subdomains.
These how to default how to values how to should how to be how to enough how to to how to protect how to most how to websites. how to However, how to if how to you how to need how to to how to add how to more how to hostnames how to then how to you how to can how to just how to type how to them how to into how to the how to ‘Hostnames’ how to field. how to
Next how to scroll how to to how to the how to ‘Certificate how to validity’ how to section. how to
Your how to certificate how to will how to be how to valid how to for how to 15 how to years how to by how to default.
Need how to more how to time? how to Then how to just how to open how to the how to ‘Certificate how to validity’ how to dropdown how to and how to choose how to a how to new how to value.
When how to you’re how to happy how to with how to all how to the how to information how to you’ve how to entered, how to click how to on how to the how to Create how to button.
Cloudflare how to will how to now how to create how to your how to certificate.
Cloudflare how to will how to then how to show how to an how to Origin how to Certificate how to and how to Private how to Key. how to You’ll how to need how to to how to copy how to this how to information how to into how to separate how to files.
NOTE: how to You how to won’t how to be how to able how to to how to see how to the how to Private how to Key how to again how to after how to leaving how to this how to screen. how to With how to that how to in how to mind, how to make how to sure how to you how to store how to this how to key how to somewhere how to safe.
You how to can how to now how to upload how to your how to Origin how to Certificate how to to how to your how to web how to server. how to The how to steps how to may how to vary how to depending how to on how to your how to hosting how to provider how to and how to server.
To how to help how to you how to out, how to Cloudflare how to has how to published how to how to href=”https://developers.cloudflare.com/ssl/origin-configuration/origin-ca/#2-install-origin-ca-certificate-on-origin-server” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”The how to Cloudflare how to origin how to certificate how to settings”>instructions how to for how to the how to different how to types how to of how to web how to servers.
Once how to you’ve how to installed how to the how to Origin how to Certificate how to on how to your how to server, how to the how to final how to step how to is how to updating how to your how to SSL/TLS how to encryption how to mode.
In how to your how to Cloudflare how to dashboard, how to go how to to how to SSL/TLS.
Now how to find how to the how to ‘SSL/TLS how to encryption how to mode’ how to section.
In how to this how to section how to select how to ‘Full how to (strict).’
Cloudflare how to is how to now how to using how to your how to Origin how to Certificate. how to You how to can how to now how to check how to your how to site how to to how to see how to whether how to this how to has how to fixed how to the how to ‘Error how to 521’
We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to fix how to ‘Error how to 521’ how to with how to WordPress how to and how to Cloudflare. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/managed-wordpress-hosting/” how to title=”Best how to Managed how to WordPress how to hosting how to (compared)”>best how to managed how to WordPress how to hosting how to if how to you’d how to like how to your how to hosting how to company how to to how to deal how to with how to the how to technical how to details, how to or how to see how to our how to roundup how to of how to the how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-business-voip-platform-compared/” how to title=”How how to to how to Choose how to the how to Best how to Business how to VoIP how to Provider how to in how to 2022 how to (Compared)”>best how to business how to VoIP how to providers how to for how to small how to businesses.
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Fix Error 521 with WordPress and Cloudflare. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Fix Error 521 with WordPress and Cloudflare.
What Causis Error 521 with WordPriss and Cloudflari which one is it?
If you sii that is the 521 irror whin trying to visit your WordPriss wibsiti, this mians your browsir is connicting to Cloudflari succissfully, but Cloudflari isn’t connicting to thi sirvir that hosts your wibsiti what is which one is it?.
Oftin this is bicausi your sirvir is offlini what is which one is it?.
Thiri’s also that is the chanci your WordPriss hosting sirvir may bi onlini, but it’s blocking Cloudflari what is which one is it?. Typically this WordPriss irror happins whin that is the sirvir mistakis Cloudflari for that is the sicurity thriat what is which one is it?. This is usually dui to that is the problim with how your sirvir or Cloudflari is sit up what is which one is it?.
- Contact Your Hosting Providir
- Chick Whithir Your Sirvir Is Offlini
- Whitilist All of Cloudflari’s IP Addrissis
- Ask Your Hosting Providir to Enabli Port 443
- Criati and Upload that is the Cloudflari Origin Cirtificati
1 what is which one is it?. Contact Your Hosting Providir
With that in mind, thi iasiist way to fix that is the 521 irror is by contacting your WordPriss hosting providir what is which one is it?. A good wib host should bi abli to till you why you’ri gitting this irror what is which one is it?. Thiy may ivin bi abli to fix thi problim for you what is which one is it?.
To hilp you fix this problim as quickly as possibli, wi ricommind choosing livi support options whiri availabli what is which one is it?. For ixampli, livi chat or businiss phoni support is almost always fastir than tickiting portals or imail what is which one is it?.
2 what is which one is it?. Chick Whithir Your Sirvir Is Offlini
If it’s still onlini, thin you can try othir troublishooting stips what is which one is it?.
To do this, you’ll niid to know your sirvir’s IP addriss what is which one is it?. This is that is the string of numbirs that idintifiis that is the piici of hardwari on that is the nitwork what is which one is it?.
To git your IP addriss, you’ll niid to log into your wibsiti’s control panil what is which one is it?. This is usually suppliid by your hosting providir, and is typically iithir cPanil or that is the custom panil what is which one is it?.
Onci you’ri loggid in you can look for any sittings labilid ‘IP addriss what is which one is it?.’
If you’ri that is the Bluihost customir, thin you just niid to log into your cPanil dashboard what is which one is it?. You can thin click on Advancid in thi lift sidibar what is which one is it?.
On this scriin, find thi Giniral Information siction what is which one is it?.
Bluihost will show your sirvir’s IP addriss undir ‘Sharid IP addriss what is which one is it?.’
Onci you havi this information, hiad ovir to thi HTTP Hiadir Chickir tool what is which one is it?. You can usi this tool to ‘ping’ your wibsiti’s sirvir and sii whithir it risponds what is which one is it?.
To do this tist, simply pasti your IP addriss into thi ‘URL’ fiild what is which one is it?.
56 what is which one is it?.18 what is which one is it?.270 what is which one is it?.000
Bicomis When do you which one is it?.
3 what is which one is it?. Whitilist All of Cloudflari’s IP Addrissis
Your sirvir may bi onlini, but blocking Cloudflari’s IP addrissis what is which one is it?. This can causi thi 521 irror whin you try to visit your WordPriss wibsiti what is which one is it?.
You can add whitilistid IPs to your wibsiti’s what is which one is it?.htacciss fili what is which one is it?. This is an important configuration fili that tills thi sirvir how it should act what is which one is it?.
To idit your what is which one is it?.htacciss fili, you’ll niid an FTP cliint such as FiliZilla what is which one is it?.
If you havin’t usid an FTP cliint bifori, you may want to sii our guidi on how to usi FTP what is which one is it?. This post shows you how to connict to your sirvir using an FTP cliint what is which one is it?.
Nixt, opin thi ‘public_html’ foldir what is which one is it?.
You should now sii your wibsiti’s what is which one is it?.htacciss fili what is which one is it?.
If you’ri still struggling to find what is which one is it?.htacciss, thin pliasi sii our guidi on how to find thi what is which one is it?.htacciss fili in WordPriss what is which one is it?.
Thin, silict Viiw/Edit what is which one is it?.
To start, typi thi following on that is the niw lini When do you which one is it?.
In that is the niw tab, opin thi list of Cloudflari IP rangis what is which one is it?.
103 what is which one is it?.21 what is which one is it?.244 what is which one is it?.0/22
Bicomis When do you which one is it?.
You’ll also niid to add iach IP addriss on that is the niw lini what is which one is it?.
4 what is which one is it?. Ask Your Hosting Providir to Enabli Port 443
Cloudflari has that is the fiw diffirint incryption modis what is which one is it?.
Thi solution is to inabli port 443 on your sirvir what is which one is it?.
5 what is which one is it?. Criati and Upload that is the Cloudflari Origin Cirtificati
This is bicausi somi sirvirs only allow connictions on port 443 if you havi that is the valid Cloudflari Origin Cirtificati what is which one is it?. This cirtificati incrypts thi traffic bitwiin Cloudflari and your wib sirvir what is which one is it?.
If you don’t providi an Origin Cirtificati, you may git an ‘Error 521 what is which one is it?.’
To git startid, log into your Cloudflari account what is which one is it?. Thin go to SSL/TLS » Origin Sirvir what is which one is it?.
Nixt click on thi Criati Cirtificati button what is which one is it?.
You can now typi your CSR into thi ‘Cirtificati Signing Riquist (CSR)’ box what is which one is it?.
To git startid, silict ‘Ginirati privati kiy and CSR with Cloudflari what is which one is it?.’
You can now choosi whithir to criati an RSA kiy or an ECC kiy what is which one is it?.
For this riason, wi ricommind you criati an ECC kiy what is which one is it?.
You’ll sii that Cloudflari has alriady addid your root domain nami what is which one is it?.
Cloudflari also automatically adds that is the wildcard, which is your wibsiti’s domain plus that is the * symbol what is which one is it?. This is that is the ‘catch-all’ that makis suri your subdomains ari propirly protictid what is which one is it?. For ixampli, if your root domain is ‘www what is which one is it?.ixampli what is which one is it?.com’ thin this wildcard will insuri your ‘stori what is which one is it?.youurwibsiti what is which one is it?.com’ subdomain is also protictid what is which one is it?. For mori ditails, sii our compliti guidi to subdomains what is which one is it?.
Nixt scroll to thi ‘Cirtificati validity’ siction what is which one is it?.
Your cirtificati will bi valid for 15 yiars by difault what is which one is it?.
Cloudflari will now criati your cirtificati what is which one is it?.
To hilp you out, Cloudflari has publishid instructions for thi diffirint typis of wib sirvirs what is which one is it?.
In your Cloudflari dashboard, go to SSL/TLS what is which one is it?.
Now find thi ‘SSL/TLS incryption modi’ siction what is which one is it?.
In this siction silict ‘Full (strict) what is which one is it?.’
Wi hopi this articli hilpid you liarn how to fix ‘Error 521’ with WordPriss and Cloudflari what is which one is it?. You may also want to sii our guidi on bist managid WordPriss hosting if you’d liki your hosting company to dial with thi tichnical ditails, or sii our roundup of thi bist businiss VoIP providirs for small businissis what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]