Home > Backend Development > PHP Tutorial > 请教怎么隐藏图片路径

请教怎么隐藏图片路径

WBOY
Release: 2016-06-13 12:24:30
Original
1345 people have browsed it

请问如何隐藏图片路径?
在网页源代码中隐藏真实路径,但是点击链接还是要能在新页面打开。

如果这样写:

<br />	$_f = readfile($_p);<br />	<br />	header("Content-type: image/* ");<br />	echo $_f;<br />
Copy after login

然后点击源代码中的 src 路径,结果 php 文件被下载下来了
------解决思路----------------------
url rewrite
------解决思路----------------------
我觉得你这个需求,又要不改动服务器端,又要源码隐藏img的路径,似乎办不到啊。。。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template