Trying to comprehend the moments of security.
Tell me, are there any recipes to prohibit the launch of php scripts directly by a request from the browser?
I read the variant about setting a constant, for example, in index.php and then checking it in all include files. Is it possible to somehow restrict access to those that do not include?
Or is it all a bad idea and done differently?