Skip to content

Commit 0e84041

Browse files
author
Eugene Manuilov
committed
Added functionality which prevents direct access to the plugin folder
1 parent bde3f1c commit 0e84041

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
// | Author: Eugene Manuilov <[email protected]> |
3232
// +----------------------------------------------------------------------+
3333

34+
// prevent direct access to the plugin folder
35+
if ( !defined( 'ABSPATH' ) ) {
36+
header( 'HTTP/1.0 404 Not Found', true, 404 );
37+
exit;
38+
}
39+
3440
// don't load the plugin, if it has been already loaded
3541
if ( class_exists( 'Visualizer_Plugin', false ) ) {
3642
return;

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
6060

6161
= 1.4.2.1 =
6262
* Fixed issue with download_url function which not exists at front end
63+
* Added functionality which prevents direct access to the plugin folder
6364

6465
= 1.4.2 =
6566
* Fixed remote CSV uploading issue when allow_url_fopen option is disabled in php.ini

0 commit comments

Comments
 (0)