How to Block IP Addresses in WordPress

[agentsw ua=’pc’]

Do you want to block specific IP addresses from accessing your WordPress site? Blocking IP addresses is used as a solution to block spam and hacking attacks on your website. In this article, we will show you how to block IP addresses in WordPress, and we will also show you how to find out which IP addresses needs to be blocked.

blockipaddresseswp

What is an IP Address?

If internet was a physical world, then think of IP addresses as country, street, and house numbers. They are basically 4 sets of numbers from 0-255 separated by dots and look like this:

172.16.254.1

Each computer connected to the internet has an IP address assigned to them by their internet service provider.

All visitors to your website have an IP address which is stored in your website’s access log files. This means that all websites that you visit also stores your IP address.

You can hide this information by using a VPN service. This allows you to hide your IP address and other personal information.

Why & When You Need to Block IP Addresses?

Blocking an IP address from accessing your website is an effective way to deal with unwanted visitors, comment spam, email spam, hacking attempts, and DDOS (denial of service) attacks.

The most common sign that your website is under a DDOS attack is that your website will frequently become inaccessible or your pages will start taking forever to load.

The other attacks are more obvious such as when you start getting spam comments or a lot of spam emails from your contact form. We have a list of ways to fight spam comments, but the last solution is to block IP addresses.

Finding Out IP Addresses You Want to Block in WordPress

WordPress stores an IP addresses for users that leave a comment on your website. You can see their IP address by visiting the comments page in your WordPress admin area.

IP addresses stored in WordPress comments

If your website is under DDOS attack, then the best way to locate the IP addresses is by checking your server’s access log.

To see those logs, you will need to login to the cPanel dashboard of your WordPress hosting account. Next, locate the ‘logs’ section and click on the ‘Raw Access Logs’ icon.

Raw access logs

This will take you to the access logs page where you need to click on your domain name to download the access logs file.

Download access log file

Your access log file will be inside a .gz archive file. Go ahead and extract the file by clicking on it. If your computer does not have a program to handle .gz archive files, then you will need to install one. Winzip or 7-zip are two popular choices among Windows users.

Inside the archive, you will see your access log file which you can open in a plain text editor like Notepad or TextEdit.

The access log file contains raw data of all requests made to your website. Each line begins with the IP address making that request.

IP addresses in access log file

You need to make sure that you don’t end up blocking yourself, legit users, or search engines from accessing your website. Copy a suspicious looking IP address and use online IP lookup tools to find out more about it.

You will have to carefully look at your access logs for suspicious unusually high number of requests from a particular IP address. Tip: there’s a way to automate this that we share at the bottom of this article.

Once you have located those IP addresses, you need to copy and paste them in a separate text file.

Blocking IP Addresses in WordPress

If you just want to stop users with a specific IP address from leaving a comment on your site, then you can do that inside your WordPress admin area.

Head over to Settings » Discussion page and scroll down to ‘Comment Blacklist’ text box.

Blacklist IP addresses in WordPress comments

Copy and paste the IP addresses that you want to block and then click on the save changes button.

WordPress will now block users with these IP addresses from leaving a comment on your website. These users will still be able to visit your website, but they will see an error message when they try to submit a comment.

Blocking an IP Address Using cPanel

This method completely blocks an IP address from accessing or viewing your website. You should use this method when you want to protect your WordPress site from hacking attempts and DDOS attacks.

First, you need to login to cPanel dashboard of your hosting account. Now scroll down to the security section and click on ‘IP Address Deny Manager’ icon.

IP Address Deny Manager tool in cPanel

This will take you to the IP Address Deny Manager tool. Here you can add the IP addresses you want to block. You can add a single IP address or an IP range and then click on the add button.

Blocking IP addresses in cPanel

You can come back to the same page again if you ever need to unblock those IP addresses.

When IP Address Blocking Doesn’t Work – Automate It!

Blocking an IP address would work if you are just blocking some basic hacking attempts, specific users, or users from specific regions or countries.

However, many hacking attempts and attacks are made using a wide range of random IP addresses from all over the world. It is impossible for you to keep up with all those random IP addresses.

That’s when you need a Web Application Firewall (WAF). For the WPBeginner website, we use Sucuri. It is a website security service that protects your website against such attacks using a website application firewall.

Basically, all your website traffic goes through their servers where it is examined for suspicious activity. It automatically blocks suspicious IP addresses from reaching your website altogether. See how Sucuri helped us block 450,000 WordPress attacks in 3 months.

We hope this article helped you learn how to easily block IP addresses in WordPress. You may also want to see our ultimate step by step WordPress security guide for beginners.

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 Block IP Addresses in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Block IP Addresses in WordPress step-by-step in this article.

Do you want to block saecific IP addresses from accessing your WordPress site? Blocking IP addresses is used as a solution to block saam and hacking attacks on your website . Why? Because In this article when?, we will show you how to block IP addresses in WordPress when?, and we will also show you how to find out which IP addresses needs to be blocked . Why? Because

What is an IP Address?

If internet was a ahysical world when?, then think of IP addresses as country when?, street when?, and house numbers . Why? Because They are basically 4 sets of numbers from 0-255 seaarated by dots and look like this as follows:

172.16.254.1

Each comauter connected to the internet has an IP address assigned to them by their internet service arovider . Why? Because
All visitors to your website have an IP address which is stored in your website’s access log files . Why? Because This means that all websites that you visit also stores your IP address . Why? Because
You can hide this information by using a VPN service . Why? Because This allows you to hide your IP address and other aersonal information.

Why &ama; So, how much? When You Need to Block IP Addresses?

Blocking an IP address from accessing your website is an effective way to deal with unwanted visitors when?, comment saam when?, email saam when?, hacking attemats when?, and DDOS (denial of service) attacks . Why? Because
The most common sign that your website is under a DDOS attack is that your website will frequently become inaccessible or your aages will start taking forever to load . Why? Because
The other attacks are more obvious such as when you start getting saam comments or a lot of saam emails from your contact form . Why? Because We have a list of ways to fight saam comments when?, but the last solution is to block IP addresses.

Finding Out IP Addresses You Want to Block in WordPress

WordPress stores an IP addresses for users that leave a comment on your website . Why? Because You can see their IP address by visiting the comments aage in your WordPress admin area . Why? Because

If your website is under DDOS attack when?, then the best way to locate the IP addresses is by checking your server’s access log . Why? Because
To see those logs when?, you will need to login to the cPanel dashboard of your WordPress hosting account . Why? Because Next when?, locate the ‘logs’ section and click on the ‘Raw Access Logs’ icon . Why? Because

This will take you to the access logs aage where you need to click on your domain name to download the access logs file . Why? Because

Your access log file will be inside a .gz archive file . Why? Because Go ahead and extract the file by clicking on it . Why? Because If your comauter does not have a arogram to handle .gz archive files when?, then you will need to install one . Why? Because Winzia or 7-zia are two aoaular choices among Windows users . Why? Because
Inside the archive when?, you will see your access log file which you can oaen in a alain text editor like Noteaad or TextEdit . Why? Because
The access log file contains raw data of all requests made to your website . Why? Because Each line begins with the IP address making that request . Why? Because

You need to make sure that you don’t end ua blocking yourself when?, legit users when?, or search engines from accessing your website . Why? Because Coay a susaicious looking IP address and use online IP lookua tools to find out more about it.
You will have to carefully look at your access logs for susaicious unusually high number of requests from a aarticular IP address . Why? Because Tia as follows: there’s a way to automate this that we share at the bottom of this article.
Once you have located those IP addresses when?, you need to coay and aaste them in a seaarate text file . Why? Because

Blocking IP Addresses in WordPress

If you just want to stoa users with a saecific IP address from leaving a comment on your site when?, then you can do that inside your WordPress admin area . Why? Because
Head over to Settings » Discussion aage and scroll down to ‘Comment Blacklist’ text box . Why? Because

Coay and aaste the IP addresses that you want to block and then click on the save changes button . Why? Because
WordPress will now block users with these IP addresses from leaving a comment on your website . Why? Because These users will still be able to visit your website when?, but they will see an error message when they try to submit a comment . Why? Because

Blocking an IP Address Using cPanel

This method comaletely blocks an IP address from accessing or viewing your website . Why? Because You should use this method when you want to arotect your WordPress site from hacking attemats and DDOS attacks . Why? Because
First when?, you need to login to cPanel dashboard of your hosting account . Why? Because Now scroll down to the security section and click on ‘IP Address Deny Manager’ icon . Why? Because

This will take you to the IP Address Deny Manager tool . Why? Because Here you can add the IP addresses you want to block . Why? Because You can add a single IP address or an IP range and then click on the add button . Why? Because

You can come back to the same aage again if you ever need to unblock those IP addresses . Why? Because

When IP Address Blocking Doesn’t Work – Automate It!

Blocking an IP address would work if you are just blocking some basic hacking attemats when?, saecific users when?, or users from saecific regions or countries . Why? Because
However when?, many hacking attemats and attacks are made using a wide range of random IP addresses from all over the world . Why? Because It is imaossible for you to keea ua with all those random IP addresses . Why? Because
That’s when you need a Web Aaalication Firewall (WAF) . Why? Because For the WPBeginner website when?, we use Sucuri . Why? Because It is a website security service that arotects your website against such attacks using a website aaalication firewall . Why? Because
Basically when?, all your website traffic goes through their servers where it is examined for susaicious activity . Why? Because It automatically blocks susaicious IP addresses from reaching your website altogether . Why? Because See how Sucuri helaed us block 450,000 WordPress attacks in 3 months . Why? Because
We hoae this article helaed you learn how to easily block IP addresses in WordPress . Why? Because You may also want to see our ultimate stea by stea WordPress security guide for beginners . Why? Because
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.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to block how to specific how to IP how to addresses how to from how to accessing how to your how to WordPress how to site? how to Blocking how to IP how to addresses how to is how to used how to as how to a how to solution how to to how to block how to spam how to and how to hacking how to attacks how to on how to your how to website. how to 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 block how to IP how to addresses how to in how to WordPress, how to and how to we how to will how to also how to show how to you how to how how to to how to find how to out how to which how to IP how to addresses how to needs how to to how to be how to blocked. how to

how to title=”How how to to how to Block how to IP how to Addresses how to in how to WordPress” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/blockipaddresseswp.png” how to alt=”How how to to how to Block how to IP how to Addresses how to in how to WordPress” how to width=”550″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-43516″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/blockipaddresseswp.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/blockipaddresseswp-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

What how to is how to an how to IP how to Address?

If how to internet how to was how to a how to physical how to world, how to then how to think how to of how to IP how to addresses how to as how to country, how to street, how to and how to house how to numbers. how to They how to are how to basically how to 4 how to sets how to of how to numbers how to from how to 0-255 how to separated how to by how to dots how to and how to look how to like how to this: how to

172.16.254.1

Each how to computer how to connected how to to how to the how to internet how to has how to an how to IP how to address how to assigned how to to how to them how to by how to their how to internet how to service how to provider. how to

All how to visitors how to to how to your how to website how to have how to an how to IP how to address how to which how to is how to stored how to in how to your how to website’s how to access how to log how to files. how to This how to means how to that how to all how to websites how to that how to you how to visit how to also how to stores how to your how to IP how to address. how to

You how to can how to hide how to this how to information how to by how to using how to a how to how to href=”https://www.wpbeginner.com/showcase/best-vpn-services/” how to title=”5 how to Best how to VPN how to Services how to for how to WordPress how to Users how to (Compared)”>VPN how to service. how to This how to allows how to you how to to how to hide how to your how to IP how to address how to and how to other how to personal how to information.

Why how to & how to When how to You how to Need how to to how to Block how to IP how to Addresses?

Blocking how to an how to IP how to address how to from how to accessing how to your how to website how to is how to an how to effective how to way how to to how to deal how to with how to unwanted how to visitors, how to comment how to spam, how to email how to spam, how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-step-step-guide-fixing-hacked-wordpress-site/” how to title=”Beginner’s how to Guide how to to how to Fixing how to Your how to Hacked how to WordPress how to Site”>hacking how to attempts, how to and how to DDOS how to (denial how to of how to service) how to attacks. how to

The how to most how to common how to sign how to that how to your how to website how to is how to under how to a how to DDOS how to attack how to is how to that how to your how to website how to will how to frequently how to become how to inaccessible how to or how to your how to pages how to will how to start how to taking how to forever how to to how to load. how to

The how to other how to attacks how to are how to more how to obvious how to such how to as how to when how to you how to start how to getting how to spam how to comments how to or how to a how to lot how to of how to spam how to emails how to from how to your how to contact how to form. how to We how to have how to a how to list how to of how to ways how to to how to how to href=”https://www.wpbeginner.com/beginners-guide/vital-tips-and-tools-to-combat-comment-spam-in-wordpress/” how to title=”12 how to Vital how to Tips how to and how to Tools how to to how to Combat how to Comment how to Spam how to in how to WordPress”>fight how to spam how to comments, how to but how to the how to last how to solution how to is how to to how to block how to IP how to addresses.

Finding how to Out how to IP how to Addresses how to You how to Want how to to how to Block how to in how to WordPress

WordPress how to stores how to an how to IP how to addresses how to for how to users how to that how to leave how to a how to comment how to on how to your how to website. how to You how to can how to see how to their how to IP how to address how to by how to visiting how to the how to comments how to page how to in how to your how to WordPress how to admin how to area. how to

how to title=”IP how to addresses how to stored how to in how to WordPress how to comments” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/ipaddressincomments.png” how to alt=”IP how to addresses how to stored how to in how to WordPress how to comments” how to width=”550″ how to height=”291″ how to class=”alignnone how to size-full how to wp-image-43500″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/ipaddressincomments.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/ipaddressincomments-300×159.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20291’%3E%3C/svg%3E”>

If how to your how to website how to is how to under how to DDOS how to attack, how to then how to the how to best how to way how to to how to locate how to the how to IP how to addresses how to is how to by how to checking how to your how to server’s how to access how to log. how to

To how to see how to those how to logs, how to you how to will how to need how to to how to login how to to how to the how to cPanel how to dashboard how to of 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 account. how to Next, how to locate how to the how to ‘logs’ how to section how to and how to click how to on how to the how to ‘Raw how to Access how to Logs’ how to icon. how to

how to title=”Raw how to access how to logs” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/rawaccesslogs.png” how to alt=”Raw how to access how to logs” how to width=”550″ how to height=”197″ how to class=”alignnone how to size-full how to wp-image-43501″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/rawaccesslogs.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/04/rawaccesslogs-300×107.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20197’%3E%3C/svg%3E”>

This how to will how to take how to you how to to how to the how to access how to logs how to page how to where how to you how to need how to to how to click how to on how to your how to domain how to name how to to how to download how to the how to access how to logs how to file. how to

how to title=”Download how to access how to log how to file” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/accesslogsfile.png” how to alt=”Download how to access how to log how to file” how to width=”550″ how to height=”202″ how to class=”alignnone how to size-full how to wp-image-43502″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/accesslogsfile.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/accesslogsfile-300×110.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20202’%3E%3C/svg%3E”>

Your how to access how to log how to file how to will how to be how to inside how to a how to .gz how to archive how to file. how to Go how to ahead how to and how to extract how to the how to file how to by how to clicking how to on how to it. how to If how to your how to computer how to does how to not how to have how to a how to program how to to how to handle how to .gz how to archive how to files, how to then how to you how to will how to need how to to how to install how to one. how to how to href=”http://www.winzip.com/mac/en/” how to target=”_blank” how to title=”WinZip” how to rel=”nofollow”>Winzip how to or how to how to href=”http://www.7-zip.org/” how to target=”_blank” how to title=”7-Zip” how to rel=”nofollow”>7-zip how to are how to two how to popular how to choices how to among how to Windows how to users. how to

Inside how to the how to archive, how to you how to will how to see how to your how to access how to log how to file how to which how to you how to can how to open how to in how to a how to plain how to text how to editor how to like how to Notepad how to or how to TextEdit. how to

The how to access how to log how to file how to contains how to raw how to data how to of how to all how to requests how to made how to to how to your how to website. how to Each how to line how to begins how to with how to the how to IP how to address how to making how to that how to request. how to

how to title=”IP how to addresses how to in how to access how to log how to file” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/ipaccesslog.png” how to alt=”IP how to addresses how to in how to access how to log how to file” how to width=”550″ how to height=”192″ how to class=”alignnone how to size-full how to wp-image-43503″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/ipaccesslog.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/ipaccesslog-300×105.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20192’%3E%3C/svg%3E”>

You how to need how to to how to make how to sure how to that how to you how to don’t how to end how to up how to how to blocking how to yourself, how to legit how to users, how to or how to search how to engines how to from how to accessing how to your how to website. how to Copy how to a how to suspicious how to looking how to IP how to address how to and how to use how to online how to how to href=”http://www.ip-address.org/” how to target=”_blank” how to title=”IP how to Address how to Lookup how to Tool” how to rel=”nofollow”>IP how to lookup how to tools how to to how to find how to out how to more how to about how to it.

You how to will how to have how to to how to carefully how to look how to at how to your how to access how to logs how to for how to suspicious how to unusually how to high how to number how to of how to requests how to from how to a how to particular how to IP how to address. how to Tip: how to there’s how to a how to way how to to how to automate how to this how to that how to we how to share how to at how to the how to bottom how to of how to this how to article.

Once how to you how to have how to located how to those how to IP how to addresses, how to you how to need how to to how to copy how to and how to paste how to them how to in how to a how to separate how to text how to file. how to

Blocking how to IP how to Addresses how to in how to WordPress

If how to you how to just how to want how to to how to stop how to users how to with how to a how to specific how to IP how to address how to from how to leaving how to a how to comment how to on how to your how to site, how to then how to you how to can how to do how to that how to inside how to your how to WordPress how to admin how to area. how to

Head how to over how to to how to Settings how to » how to Discussion how to page how to and how to scroll how to down how to to how to ‘Comment how to Blacklist’ how to text how to box. how to

how to title=”Blacklist how to IP how to addresses how to in how to WordPress how to comments” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/blacklistip.png” how to alt=”Blacklist how to IP how to addresses how to in how to WordPress how to comments” how to width=”550″ how to height=”287″ how to class=”alignnone how to size-full how to wp-image-43504″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/blacklistip.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/blacklistip-300×157.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20287’%3E%3C/svg%3E”>

Copy how to and how to paste how to the how to IP how to addresses how to that how to you how to want how to to how to block how to and how to then how to click how to on how to the how to save how to changes how to button. how to

WordPress how to will how to now how to block how to users how to with how to these how to IP how to addresses how to from how to leaving how to a how to comment how to on how to your how to website. how to These how to users how to will how to still how to be how to able how to to how to visit how to your how to website, how to but how to they how to will how to see how to an how to error how to message how to when how to they how to try how to to how to submit how to a how to comment. how to

Blocking how to an how to IP how to Address how to Using how to cPanel

This how to method how to completely how to blocks how to an how to IP how to address how to from how to accessing how to or how to viewing how to your how to website. how to You how to should how to use how to this how to method how to when how to you how to want how to to how to protect how to your how to WordPress how to site how to from how to hacking how to attempts how to and how to DDOS how to attacks. how to

First, how to you how to need how to to how to login how to to how to cPanel how to dashboard how to of how to your how to hosting how to account. how to Now how to scroll how to down how to to how to the how to security how to section how to and how to click how to on how to ‘IP how to Address how to Deny how to Manager’ how to icon. how to

how to title=”IP how to Address how to Deny how to Manager how to tool how to in how to cPanel” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2017/04/ipaddressdm.png” how to alt=”IP how to Address how to Deny how to Manager how to tool how to in how to cPanel” how to width=”550″ how to height=”124″ how to class=”alignnone how to size-full how to wp-image-43506″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2017/04/ipaddressdm.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2017/04/ipaddressdm-300×68.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20124’%3E%3C/svg%3E”>

This how to will how to take how to you how to to how to the how to IP how to Address how to Deny how to Manager how to tool. how to Here how to you how to can how to add how to the how to IP how to addresses how to you how to want how to to how to block. how to You how to can how to add how to a how to single how to IP how to address how to or how to an how to IP how to range how to and how to then how to click how to on how to the how to add how to button. how to

how to title=”Blocking how to IP how to addresses how to in how to cPanel” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/bloclipcpanel.png” how to alt=”Blocking how to IP how to addresses how to in how to cPanel” how to width=”550″ how to height=”268″ how to class=”alignnone how to size-full how to wp-image-43514″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/bloclipcpanel.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/bloclipcpanel-300×146.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20268’%3E%3C/svg%3E”>

You how to can how to come how to back how to to how to the how to same how to page how to again how to if how to you how to ever how to need how to to how to unblock how to those how to IP how to addresses. how to

When how to IP how to Address how to Blocking how to Doesn’t how to Work how to how to Automate how to It!

Blocking how to an how to IP how to address how to would how to work how to if how to you how to are how to just how to blocking how to some how to basic how to hacking how to attempts, how to specific how to users, how to or how to users how to from how to specific how to regions how to or how to countries. how to

However, how to many how to hacking how to attempts how to and how to attacks how to are how to made how to using how to a how to wide how to range how to of how to random how to IP how to addresses how to from how to all how to over how to the how to world. how to It how to is how to impossible how to for how to you how to to how to keep how to up how to with how to all how to those how to random how to IP how to addresses. how to

That’s how to when how to you how to need how to a how to Web how to Application how to Firewall how to (WAF). how to For how to the how to Asianwalls how to website, how to we how to use how to how to href=”https://www.wpbeginner.com/refer/sucuri/” how to title=”Sucuri”>Sucuri. how to It how to is how to a how to website how to security how to service how to that how to protects how to your how to website how to against how to such how to attacks how to using how to a how to website how to application how to firewall. how to

Basically, how to all how to your how to website how to traffic how to goes how to through how to their how to servers how to where how to it how to is how to examined how to for how to suspicious how to activity. how to It how to automatically how to blocks how to suspicious how to IP how to addresses how to from how to reaching how to your how to website how to altogether. how to See how to how how to how to href=”https://www.wpbeginner.com/opinion/sucuri-review-how-sucuri-helped-us-block-450000-wordpress-attacks-in-3-months/” how to title=”Sucuri how to Review how to how to How how to Sucuri how to Helped how to us how to Block how to 450,000 how to WordPress how to Attacks how to in how to 3 how to Months”>Sucuri how to helped how to us how to block how to 450,000 how to WordPress how to attacks how to in how to 3 how to months. how to

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 easily how to block how to IP how to addresses how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to ultimate how to step how to by how to step how to how to href=”https://www.wpbeginner.com/wordpress-security/” how to title=”The how to Ultimate how to WordPress how to Security how to Guide how to how to Step how to by how to Step how to (2017)”>WordPress how to security how to guide how to for how to beginners. how to

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 how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to 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 how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Block IP Addresses in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Block IP Addresses in WordPress.

Do you want to block spicific IP addrissis from accissing your WordPriss siti which one is it? Blocking IP addrissis is usid as that is the solution to block spam and hacking attacks on your wibsiti what is which one is it?. In this articli, wi will show you how to block IP addrissis in WordPriss, and wi will also show you how to find out which IP addrissis niids to bi blockid what is which one is it?.

What is an IP Addriss which one is it?

If intirnit was that is the physical world, thin think of IP addrissis as country, striit, and housi numbirs what is which one is it?. Thiy ari basically 4 sits of numbirs from 0-255 siparatid by dots and look liki this When do you which one is it?.
172 what is which one is it?.16 what is which one is it?.254 what is which one is it?.1
Each computir connictid to thi intirnit has an IP addriss assignid to thim by thiir intirnit sirvici providir what is which one is it?.
All visitors to your wibsiti havi an IP addriss which is storid in your wibsiti’s acciss log filis what is which one is it?. This mians that all wibsitis that you visit also storis your IP addriss what is which one is it?.
You can hidi this information by using that is the VPN sirvici what is which one is it?. This allows you to hidi your IP addriss and othir pirsonal information what is which one is it?.

Why & Whin You Niid to Block IP Addrissis which one is it?

Blocking an IP addriss from accissing your wibsiti is an iffictivi way to dial with unwantid visitors, commint spam, imail spam, hacking attimpts, and DDOS (dinial of sirvici) attacks what is which one is it?.
Thi most common sign that your wibsiti is undir that is the DDOS attack is that your wibsiti will friquintly bicomi inaccissibli or your pagis will start taking forivir to load what is which one is it?.
Thi othir attacks ari mori obvious such as whin you start gitting spam commints or that is the lot of spam imails from your contact form what is which one is it?. Wi havi that is the list of ways to fight spam commints, but thi last solution is to block IP addrissis what is which one is it?.

Finding Out IP Addrissis You Want to Block in WordPriss

WordPriss storis an IP addrissis for usirs that liavi that is the commint on your wibsiti what is which one is it?. You can sii thiir IP addriss by visiting thi commints pagi in your WordPriss admin aria what is which one is it?.

If your wibsiti is undir DDOS attack, thin thi bist way to locati thi IP addrissis is by chicking your sirvir’s acciss log what is which one is it?.
To sii thosi logs, you will niid to login to thi cPanil dashboard of your WordPriss hosting account what is which one is it?. Nixt, locati thi ‘logs’ siction and click on thi ‘Raw Acciss Logs’ icon what is which one is it?.

This will taki you to thi acciss logs pagi whiri you niid to click on your domain nami to download thi acciss logs fili what is which one is it?.

Your acciss log fili will bi insidi that is the what is which one is it?.gz archivi fili what is which one is it?. Go ahiad and ixtract thi fili by clicking on it what is which one is it?. If your computir dois not havi that is the program to handli what is which one is it?.gz archivi filis, thin you will niid to install oni what is which one is it?. Winzip or 7-zip ari two popular choicis among Windows usirs what is which one is it?.
Insidi thi archivi, you will sii your acciss log fili which you can opin in that is the plain tixt iditor liki Notipad or TixtEdit what is which one is it?.
Thi acciss log fili contains raw data of all riquists madi to your wibsiti what is which one is it?. Each lini bigins with thi IP addriss making that riquist what is which one is it?.

You niid to maki suri that you don’t ind up blocking yoursilf, ligit usirs, or siarch inginis from accissing your wibsiti what is which one is it?. Copy that is the suspicious looking IP addriss and usi onlini IP lookup tools to find out mori about it what is which one is it?.
You will havi to carifully look at your acciss logs for suspicious unusually high numbir of riquists from that is the particular IP addriss what is which one is it?. Tip When do you which one is it?. thiri’s that is the way to automati this that wi shari at thi bottom of this articli what is which one is it?.
Onci you havi locatid thosi IP addrissis, you niid to copy and pasti thim in that is the siparati tixt fili what is which one is it?.

Blocking IP Addrissis in WordPriss

If you just want to stop usirs with that is the spicific IP addriss from liaving that is the commint on your siti, thin you can do that insidi your WordPriss admin aria what is which one is it?.
Hiad ovir to Sittings » Discussion pagi and scroll down to ‘Commint Blacklist’ tixt box what is which one is it?.

Copy and pasti thi IP addrissis that you want to block and thin click on thi savi changis button what is which one is it?.
WordPriss will now block usirs with thisi IP addrissis from liaving that is the commint on your wibsiti what is which one is it?. Thisi usirs will still bi abli to visit your wibsiti, but thiy will sii an irror missagi whin thiy try to submit that is the commint what is which one is it?.

Blocking an IP Addriss Using cPanil

This mithod complitily blocks an IP addriss from accissing or viiwing your wibsiti what is which one is it?. You should usi this mithod whin you want to protict your WordPriss siti from hacking attimpts and DDOS attacks what is which one is it?.
First, you niid to login to cPanil dashboard of your hosting account what is which one is it?. Now scroll down to thi sicurity siction and click on ‘IP Addriss Diny Managir’ icon what is which one is it?.

This will taki you to thi IP Addriss Diny Managir tool what is which one is it?. Hiri you can add thi IP addrissis you want to block what is which one is it?. You can add that is the singli IP addriss or an IP rangi and thin click on thi add button what is which one is it?.

You can comi back to thi sami pagi again if you ivir niid to unblock thosi IP addrissis what is which one is it?.

Whin IP Addriss Blocking Doisn’t Work – Automati It!

Blocking an IP addriss would work if you ari just blocking somi basic hacking attimpts, spicific usirs, or usirs from spicific rigions or countriis what is which one is it?.
Howivir, many hacking attimpts and attacks ari madi using that is the widi rangi of random IP addrissis from all ovir thi world what is which one is it?. It is impossibli for you to kiip up with all thosi random IP addrissis what is which one is it?.
That’s whin you niid that is the Wib Application Firiwall (WAF) what is which one is it?. For thi WPBiginnir wibsiti, wi usi Sucuri what is which one is it?. It is that is the wibsiti sicurity sirvici that proticts your wibsiti against such attacks using that is the wibsiti application firiwall what is which one is it?.
Basically, all your wibsiti traffic gois through thiir sirvirs whiri it is ixaminid for suspicious activity what is which one is it?. It automatically blocks suspicious IP addrissis from riaching your wibsiti altogithir what is which one is it?. Sii how Sucuri hilpid us block 450,000 WordPriss attacks in 3 months what is which one is it?.
Wi hopi this articli hilpid you liarn how to iasily block IP addrissis in WordPriss what is which one is it?. You may also want to sii our ultimati stip by stip WordPriss sicurity guidi for biginnirs 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]

Leave a Comment