Prevent direct access from outside WordPress (#60)
* prevent access from outside wordpress * prevent discovery of file structure
This commit is contained in:
parent
a5a3e8372d
commit
cb61208b12
23 changed files with 36 additions and 0 deletions
2
admin/css/index.php
Normal file
2
admin/css/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
admin/images/index.php
Normal file
2
admin/images/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
admin/index.php
Normal file
2
admin/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
admin/js/index.php
Normal file
2
admin/js/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
bin/index.php
Normal file
2
bin/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRYPress
|
class LBRYPress
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Admin_Notice
|
class LBRY_Admin_Notice
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Daemon
|
class LBRY_Daemon
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Daemon_Logger
|
class LBRY_Daemon_Logger
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,6 +8,7 @@ use League\HTMLToMarkdown\HtmlConverter;
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Network_Parser
|
class LBRY_Network_Parser
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Network_Publisher
|
class LBRY_Network_Publisher
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Notifier
|
class LBRY_Notifier
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Speech
|
class LBRY_Speech
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Speech_Media
|
class LBRY_Speech_Media
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Speech_Parser
|
class LBRY_Speech_Parser
|
||||||
{
|
{
|
||||||
|
|
2
classes/index.php
Normal file
2
classes/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
|
@ -5,6 +5,7 @@
|
||||||
*
|
*
|
||||||
* @package LBRYPress
|
* @package LBRYPress
|
||||||
*/
|
*/
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
|
||||||
class LBRY_Post_Handler
|
class LBRY_Post_Handler
|
||||||
{
|
{
|
||||||
|
|
2
frontend/index.php
Normal file
2
frontend/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
inc/index.php
Normal file
2
inc/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
templates/index.php
Normal file
2
templates/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
|
@ -1,3 +1,6 @@
|
||||||
|
<?php
|
||||||
|
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||||
|
?>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
<p><?php echo LBRY_NAME; ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
|
<p><?php echo LBRY_NAME; ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
|
||||||
|
|
||||||
|
|
2
tests/index.php
Normal file
2
tests/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
2
vendor/index.php
vendored
Normal file
2
vendor/index.php
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
// Silence is golden
|
Loading…
Reference in a new issue