How is defined ('_JEXEC') or die ('Restricted Access')?

This line is at the top of the templates and modules:

defined('_JEXEC') or die('Restricted access');

And from Joomla! Documentation :

This statement checks if a file is being called from Joomla! and protects your site, making it more difficult for a cracker / hacker to damage your site.

_JEXECdefined in a file index.phpin the root directory of Joomla! [source] site , which will prevent someone from identifying _JEXECon their own site and turning on my module, since it defined('_JEXEC')returns true?

+4
source share
2 answers

, , _JEXEC . - , , -, /index.php.

- _JEXEC

. php , , , , php-, ?

+3

- Joomla . , .

0

Source: https://habr.com/ru/post/1534950/


All Articles