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

高洛峰
Release: 2023-03-02 20:12:02
Original
2030 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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template