Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如我在标题中所说,如何使用 htaccess 隐藏页面的源视图?像那样:
(fake code) IF [URL START WITH "view-soure"] - DONT_SHOW_CODE_PLZ
你不能。
view-source:URL 前缀由浏览器内部处理。
view-source:
服务器看不到它,因此服务器端代码无法基于它触发。