Home >Backend Development >PHP Tutorial >How to hide the real address of an image in php
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