本文介紹了如何使用 PHP 加密 HTML 源代碼輸出的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想阻止新手用戶看到源代碼.我有一個生成 html 頁面的 php 代碼.
I want to deter novice users from seeing the source code. I have a php code that generates a html page.
我遇到了一個簡單的工具,它可以將 html 代碼加密為 %C%D%F,但它與瀏覽器配合得很好.
edit1: I came across a simple tool which encrypted html code into %C%D%F but which worked with the browser just fine.
推薦答案
雖然,正如@Jeff 所說,你不能加密你的 HTML 輸出,你可以混淆它以使其更難以被人類理解.這是一個鏈接,指向一個免費產(chǎn)品.
While, as @Jeff said, you can't encrypt your HTML output, you can obfuscated it to make it more difficult for a human to understand. Here is a link to a free product that does just that.
這篇關于如何使用 PHP 加密 HTML 源代碼輸出的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!