How to hide the real address of an image in php

高洛峰
Release: 2023-03-02 20:12:02
Original
1977 people have browsed it

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

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