Problem Statement
What is the difference between LFI and RFI?
Explanation
Local File Inclusion stays within the host, like reading logs or config files. Remote File Inclusion lets the server fetch and sometimes execute remote content. Tight include logic and allowlists prevent both.
Code Solution
SolutionRead Only
LFI probe: ?page=../../../../var/log/app.log
