WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
[resolved] How to make this work :) (3 posts)

  1. evilsocket
    Member
    Posted 3 years ago #

    Hi there.
    I developed this plugin http://wordpress.org/extend/plugins/wp-sentinel .
    It's a security system and one of its features is to auto ban ip addresses upon attacks (XSS, RFI, SQL injections, ecc).
    If an ip is banned, in the "init" hook of WordPress, i just show a message and "die" instead showing the blog entries.
    The problem is that, with wp-super-cache enabled, the ban message (not bound to any page, could come out in every page the banned address is trying to surf) gets cached so, from that moment, every user will see a ban message on that page instead the normal blog.

    Is there any way to "interact" with wp-super-cache to let it know to not put in its cache upon certain conditions (upon banning) ?

    Thanks.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Your first port of call should have been the developer docs. Look up "DONOTCACHEPAGE" on that page :)

  3. evilsocket
    Member
    Posted 3 years ago #

    thanks sooo much :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic