Home >Backend Development >PHP Tutorial >How to hide the real address of an image in php

How to hide the real address of an image in php

高洛峰
高洛峰Original
2016-12-02 10:18:001991browse

image_path=”images/”
image_file=image_path._GET['name'];
sTmpVar = fread(fopen(image_file, 'r'), filesize(image_path));
header("Content-type : image/* “);
echo sTmpVar;
?>

This code can not only hide pictures, but the last three lines of the code do not need to be changed, and even the real FLASH address can be hidden.
Using this combined with other technologies can prevent hotlinking

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