Title: Exclude code from single page
Last modified: January 28, 2017

---

# Exclude code from single page

 *  Resolved [sushidread](https://wordpress.org/support/users/sushidread/)
 * (@sushidread)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/)
 * Hi,
    I had some problems with slimstat and fail2ban active on the server. On 
   wp-login.php due to ajax calls, slimstat is triggering fail2ban. Disabling slimstat
   solves the problem. I am looking for a way to disable slistat on wp-login.php,
   already tried to exclude from settings but the js code is still loading, I need
   to remove the code only on wp-login.php. Is there a way to do that?
 * Thanks
    -  This topic was modified 9 years, 2 months ago by [sushidread](https://wordpress.org/support/users/sushidread/).
    -  This topic was modified 9 years, 2 months ago by [sushidread](https://wordpress.org/support/users/sushidread/).

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/#post-8711099)
 * Hi,
 * What settings did you change to try and exclude that page? If you’re tracking
   registered users, the code will be added to the login page. Also make sure not
   to track any admin page. You can also use the blacklists to exclude the login
   page URL.
 * Best,
    Jason
 *  Thread Starter [sushidread](https://wordpress.org/support/users/sushidread/)
 * (@sushidread)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/#post-8714664)
 * Hi Jason,
    I was blacklisting the wp-login.php in Settings>Filters>Permalink,
   but I think that is not the right way.
 * I solved the problem putting the tracking in “Server” mode instead of client,
   now the js is not loading anymore and fail2ban is not triggered anymore.
 * Is this a correct behaviour or you suggest a different approach?
 * Thanks
 *  Thread Starter [sushidread](https://wordpress.org/support/users/sushidread/)
 * (@sushidread)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/#post-8714665)
 * Hi Jason,
    I was blacklisting the wp-login.php in Settings>Filters>Permalink,
   but I think that is not the right way.
 * I solved the problem putting the tracking in “Server” mode instead of client,
   now the js is not loading anymore and fail2ban is not triggered anymore.
 * Is this a correct behaviour or do you suggest a different approach?
 * Thanks
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/#post-8715242)
 * Yes, that works too. Actually, in server mode the tracker is even more accurate
   😉
 * Jason

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

The topic ‘Exclude code from single page’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [fail2ban](https://wordpress.org/support/topic-tag/fail2ban/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/exclude-code-from-single-page/#post-8715242)
 * Status: resolved