WordPress.org

Ready to get started?Download WordPress

Ideas

filter for the whole page

  1. karacsi_maci
    Member

    That could be good, if there would be a filter, what is applied for the whole page.

    like
    <?php add_filter('whole_page','function'); ?>

    Posted: 4 years ago #
  2. thank

    Posted: 4 years ago #
  3. Jonathan Dingman
    Member

    12345

    how would that actually help though?

    there's already header and footer hooks and filters that will work just the same.

    Posted: 4 years ago #
  4. marsupialpouch
    Member

    12345

    It would help me. I've written a plugin which scans all page output for XSS and spam whether it's injected into post/page content or a theme and filters out anything not on a whitelist. My thought was to minimise the damage for anyone who's had their WP hacked because their hosting service wasn't secure.

    Unfortunately you need to hack index.php to get it working so I haven't released it until I can figure out a more user friendly way to do it.

    Posted: 4 years ago #
  5. Andy Macaulay-Brook
    Member

    12345

    If you're that hacked, can't the hacker edit source to get rid of your scan?

    I'd have thought a filter like this would need the whole of the output to be buffered. Could be done, but rather an imposition on site owners who might prefer unbuffered output.

    Posted: 3 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    8 Votes
  • Status

    Sorry, not right now