hyunsupul / aesop-core

Open-sourced suite of components that empower interactive storytelling in WordPress.
http://aesopstoryengine.com
GNU General Public License v2.0
244 stars 56 forks source link

403 forbidden for certain files #262

Closed michaelbeil closed 9 years ago

michaelbeil commented 9 years ago

Should we harden some of our files with a 403?

This one comes to mind: https://github.com/bearded-avenger/aesop-core/blob/master/admin/views/index.php.

Could use:

<?php
//Nothing to see here
header('HTTP/1.0 403 Forbidden');

Or depending on the file:

<?php
if ( ! defined( 'ABSPATH' ) ) {
    header( 'HTTP/1.0 403 Forbidden' );
    die;
}