A Trick to Stop Bots from Flooding Empire CMS with Fake Feedback

Open: Admin home → Feedback Management → Feedback Categories → Edit
Find any </td> and insert before it:

<div style="display:none;">
<input type="text" name="website" value="">
</div>

Open: e/enews/index.php
Find: eCheckCloseMods('fb');//close the module
Add after it:

    if(!empty($_POST['website'])){
        db_close();
        $empire=null;
        printerror("Invalid submission","history.go(-1)",1);
    } 

The hidden field tricks bots into filling something in, and anything filled in can't be submitted — so the post never goes through. You can stack several of these fields on the same form; each one is a trap for bots, and the feedback queue stays clean.

Leave a Comment

Comments 1

  • verte
    verte 2025-10-02 11:03 Reply

    这个方法不错。可以试试

Table of Contents