CodeIgniter Forums
How did Google crawler indexed our views php files !? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How did Google crawler indexed our views php files !? (/showthread.php?tid=74695)



How did Google crawler indexed our views php files !? - khashabawy - 10-26-2019

Dear friends,

Using google console we discovered that google has crawled to some php files in the views folder , Any idea how did google know these files names as paths ?

See attachments


RE: How did Google crawler indexed our views php files !? - jreklund - 10-26-2019

If you open /apps/frontend/views/default/templates/main/ in a browser, can you see the files?


RE: How did Google crawler indexed our views php files !? - dave friend - 10-26-2019

Most likely someone deleted or tampered with the .htaccess file that is supposed to be found in /application

Its contents prevent direct HTTP access to files and folders in /application.

Code:
<IfModule authz_core_module>
    Require all denied
</IfModule>
<IfModule !authz_core_module>
    Deny from all
</IfModule>