How To Stop Storing IP Addresses In Wordpress
How To Stop Storing IP Addresses In WordPress Comments | Plugin & Manual Method 

You should read this helpful post if you want to know how to reliably no longer keep the IP-address. It went into great depth on how to remedy this problem with WordPress comments.

There are website proprietors that go through this process so that their users can stay anonymous. To put it another way, defend yourself once again. You never again need to monitor IP addresses for WordPress remarks. The indisputable benefits and drawbacks of WordPress IP-addresses will no longer be kept in the comments. The database records all of the IP-addresses and publications of the site’s active users, who write comments on a regular basis.

Saving addresses is required so that the site’s owner can monitor and filter user comments. In addition, they want to defend themselves from various types of spam. There are plug-ins that automatically prohibit comment spam, which may be harmful to the web page’s owner.

You can watch the video tutorial below for this article:

If visitors who are on the site owner are not identified in this service as VPN, you can check the database in which they are maintained eternally for their true IP-addresses. However, there are other providers who merely save a portion of this information. Also, preserve it there for a drawn out timeframe

Taking a gander at the matter from another point, on the off chance that the IP address isn’t saved in the remarks, it promptly supports figuring out which remarks might be set and which should be taken out to stay away from protection settings.

Users will be able to remark with complete trust that their comments will not be removed afterwards. The user site will only store IP addresses. Users will not have to be concerned in this respect. You might impair saving-ip address in the remarks in an assortment of strategies.

Now, let’s go ahead with how to exactly stop storing IP Addresses in WordPress comments in two ways: The Plugin & Manual Method.

The Plugin Method:

  • Go in your WordPress Admin Dashboard.
  • Hover directly to Plugins.
  • Click on Add New.
  • In the search box, type Remove IP Guido
  • You’ll see the plugin. 
  • Click on Install Now and then Activate.
  • Once activated, the plugin will change the user IP address with 127.0.0.1, which is the IP address used by localhost.
How To Stop Storing IP Addresses In WordPress Comments

It’s as easy as that.

The Manual Method:

How To Stop Storing IP Addresses In WordPress Comments
  • Go to your WordPress Admin Dashboard.
  • Hover on to Appearance
  • Then, click on Theme Editor.
  • Tap on Theme Functions.
  • Scroll right all the way down to the bottom of the page.
  • You have to enter a small piece of code.

NOTE: Before making any code-associated changes, it is suggested to have a backup of your website JUST IN CASE anything goes wrong, then you can at least repair it afterwards.

How To Stop Storing IP Addresses In WordPress Comments

Code:

function wpb_remove_commentsip( $comment_author_ip ) {

return ”;

}

add_filter( ‘pre_comment_user_ip’, ‘wpb_remove_commentsip’ );
  • Copy this code and paste it at the end of the file.
  • Once you’ve added this code, click on the Update File

As long as you followed our steps correctly, you must have been able to stop storing IP addresses in WordPress Comments. 

In case you have more queries, and require more help, feel absolutely free to check out our website or contact Digital Suncity.

Also Read: How To Add Your WordPress Site In Yandex Webmaster Tools

0 Comments

Submit a Comment

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

Need Professional Help?

We can help you with website fixes and ongoing maintenance.