How to find the .php code and file on the server when checking items from an Internet browser?

When I check an element of my web page using Firebug, I can’t determine which php code it uses and on which php file I can find this code from the server. Is there any other way to find fragments of php codes in a browser?

Thank you very much,

Arthur

+4
source share
3 answers

You can edit the source code to print it. Perhaps an HTML comment, for example: <!-- Start of index.php -->

I am actively working to hide which PHP file is used to generate any specific HTML output, as it poses a serious security risk .

+1
source

Look at the address bar of the browser. Firebug checks the operation on the current page of the browser, and it does not know what PHP is - it is just HTML content, regardless of the fact that the script runs on the server that generated the content.

If this does not help, clarify your question.

0
source

If it were possible, it would make php less secure, part of the security is the ambiguity, if you could just figure out which file does what would be much easier to launch a targeted attack.

0
source

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


All Articles