How to locate .php code and file on the server when inspecting elements from an internet browser? [closed]

StackOverflow https://stackoverflow.com/questions/7183070

  •  12-01-2021
  •  | 
  •  

When I inspect an element of my webpage using Firebug, I cannot identify which .php code it using and on which php file I can find this code on from the server. Is there any other way to locate pieces of php codes from a browser?

Many thanks,

Arthur

有帮助吗?

解决方案

You could edit the source code to make print out. Maybe a HTML comment such as:<!-- Start of index.php -->

I actively work to hide what PHP-file is used to generate any specific HTML-output as it makes out a serious security threat.

其他提示

Look at the address bar of the browser. Firebug inspect works for the current browser page and it doesn't know what PHP is - it's just HTML content, regardless of the script running on the server that generated the content.

If this doesn't help, elaborate your question.

If this were possible it would make php less secure, a part of the security is the obscurity, if you could simple find out which file does what it would be much easer to launch a targeted attack.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top