Title: Exclude IP address
Last modified: April 18, 2021

---

# Exclude IP address

 *  Resolved [mojopowder](https://wordpress.org/support/users/mojopowder/)
 * (@mojopowder)
 * [5 years ago](https://wordpress.org/support/topic/exclude-ip-address-2/)
 * Hello. Is it possible to exclude an IP address or addresses from the analytics(
   visits)? In checking the site as regular users, it registers it as visits or 
   return visits. This would help staff that needs to constantly check the site,
   most of the time clearing all cookies for each visit.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [5 years ago](https://wordpress.org/support/topic/exclude-ip-address-2/#post-14335063)
 * You can make a slight adaption on this code snippet:
 * [https://github.com/ibericode/koko-analytics/blob/master/code-snippets/disable-tracking-on-certain-urls.php](https://github.com/ibericode/koko-analytics/blob/master/code-snippets/disable-tracking-on-certain-urls.php)
 * Of course instead of
 * if ( stripos( $_SERVER[‘REQUEST_URI’], ‘/wp-admin/’ ) === 0 ) { ….
 * you would do something like
 * if ( $_SERVER[‘REMOTE_ADDR’] === “123.234.345.456” ) { ….
 * Hope that helps. If you have any questions, please let me know!
 *  [erdincyildiz](https://wordpress.org/support/users/erdincyildiz/)
 * (@erdincyildiz)
 * [5 years ago](https://wordpress.org/support/topic/exclude-ip-address-2/#post-14336055)
 * Hi [@lapzor](https://wordpress.org/support/users/lapzor/) that was also what 
   i wanted to ask. I understood thet a code will do but could you please wrıte 
   the whole code for excluding wp-admin and multiple ip’s at once? How to separate
   the ip’s, since i saw two lines in the code at github.
 * You may have noticed that i have no clue in writing codes but adding them 🙂
 * Do i have to add multiple snippets for every ip address or does one code do it?
 * Thank you and nice plugin by the way.
 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [5 years ago](https://wordpress.org/support/topic/exclude-ip-address-2/#post-14340166)
 * I’m sorry, at this time we can’t provide fully tested custom code via this support
   channel.
 * I recommend you hire someone on one of the crowdsourcing sites to write the code
   for you, it shouldn’t be much work given the examples above.
 * Hope that helps. If you have any questions, please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude IP address’ is closed to new replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/exclude-ip-address-2/#post-14340166)
 * Status: resolved