开发者

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

开发者 https://www.devze.com 2023-03-30 06:39 出处:网络
As it currently stands, this quest开发者_StackOverflowion is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will like
As it currently stands, this quest开发者_StackOverflowion is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消