简体   繁体   中英

download php with login details using wget

If I have a php file that contains my twitter access and consumer keys and secrets in plain text, isn't it possible that somebody can just download that php file using, for example, wget, read the file and then know my twitter login keys? How would I protect against this?

第一种,将这些文件存储在文档根目录之外,第二种,否,如果服务器设置正确,则客户端永远无法获取PHP文件的源代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM