How to secure the php code?

前端 未结 5 1699
臣服心动
臣服心动 2021-01-24 17:19

I created now a Javascript Code that get the php variable into javascript code, my issue that the php variable is important and I don\'t want any can see this variable is there

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-24 18:05

    who wants to get the value, will get it. but you can

    • dynamically inject them via ajax
    • encode (base64 etc.) the value
    • obfuscate the code

提交回复
热议问题