Title: Bad Behavior and Hyper Cache?
Last modified: August 24, 2016

---

# Bad Behavior and Hyper Cache?

 *  [carbeck](https://wordpress.org/support/users/carbeck/)
 * (@carbeck)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-behavior-and-hyper-cache/)
 * Hi there,
 * my host strongly advises to use a caching plugin when using WordPress, their 
   favorite being Hyper Cache. I’m currently using the non-cookie based screening
   in Bad Behavior, which injects a Javascript snippet containing a user’s IP address
   into the page instead of setting a cookie.
 * 1. I suppose that if I were to use Hyper Cache with this setting, the Javascript
   code snippets would be cached as well, which of course I wouldn’t want? I suppose
   if you want to use caching, you have to use the cookie-based solution?
 * 2. Is there a way to keep bots out before a cached page is delivered?
 * Regards
    carbeck
 * [https://wordpress.org/plugins/bad-behavior/](https://wordpress.org/plugins/bad-behavior/)

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

 *  Thread Starter [carbeck](https://wordpress.org/support/users/carbeck/)
 * (@carbeck)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bad-behavior-and-hyper-cache/#post-5977090)
 * It seems that regardless of whether you’re ticking the “EU cookie handling” box
   or not, Bad Behavior puts a piece of Javascript in your code as described. So
   I guess it’s either caching _or_ Bad Behavior.
 *  [Handoko](https://wordpress.org/support/users/handoko-zhang/)
 * (@handoko-zhang)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bad-behavior-and-hyper-cache/#post-5977203)
 * _2. Is there a way to keep bots out before a cached page is delivered?_
 * I tested many caching plugins, I found Bad Behavior only work correctly with **
   Basic Caching** provided by **Wordfence Security** plugin.

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

The topic ‘Bad Behavior and Hyper Cache?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bad-behavior.svg)
 * [Bad Behavior](https://wordpress.org/plugins/bad-behavior/)
 * [Support Threads](https://wordpress.org/support/plugin/bad-behavior/)
 * [Active Topics](https://wordpress.org/support/plugin/bad-behavior/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bad-behavior/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bad-behavior/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Handoko](https://wordpress.org/support/users/handoko-zhang/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/bad-behavior-and-hyper-cache/#post-5977203)
 * Status: not resolved