My website build from many pages , those pages split to two categories , one the "html" files and the "core" files which contain the functions and the server-side code that the "html" file need , their both PHP files.
There is situation that the "core" files can be requested not from the "html" files and i want to block this.
i want that the "core" files will be only able to open only if the "html" files requested them , else it will show the 404 error , is that possible?
note*: i said earlier , the "html" and the "core" files are both PHP files.
thank you in advance!