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

请教怎么隐藏图片路径

WBOY
WBOYOriginal
2016-06-13 12:24:301342browse

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

如果这样写:

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

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

Statement:
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