HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/admin-site-enhancements/classes/class-disable-feeds.php
<?php

namespace ASENHA\Classes;

/**
 * Class for Disable Feeds module
 *
 * @since 6.9.5
 */
class Disable_Feeds {

    /**
     * Ensure /feed/ page outputs a 403 Forbidden header and message
     * 
     * @since 5.5.2
     */
    public function redirect_feed_to_403() {
        if ( is_feed() ) {
            status_header( 403 ); // Send an HTTP 403 Forbidden status header
            die( '403 Forbidden' ); // End execution and display a 403 Forbidden message
        }
    }

}