Skip to content

Commit 1ad0c64

Browse files
author
Angelo Cali
committed
add exit-if-direct-access-to-file snippet
1 parent 372d4a6 commit 1ad0c64

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)