Skip to content

Commit 5d00f4a

Browse files
author
Dale Nguyen
authored
Merge pull request #13 from angelocali/exit_if_direct_access_to_file
add exit-if-direct-access-to-file snippet
2 parents 372d4a6 + 1ad0c64 commit 5d00f4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exit-if-direct-access-to-file.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Exit if direct access attempt to the file for example with a browser
2+
defined( 'ABSPATH' ) || exit;

0 commit comments

Comments
 (0)