Making Images Unsaveable
Started on the old forum in August 2007 · view the original in the archive · old links redirect here
21 replies · 2,549 views · started 19 years ago · 1 min read
TL;DR · summary of 21 replies
- nclemale36 asked how to make images unsaveable for others.
- Guest suggested using DRM, transparent gifs, and obsfucated URLs.
- amylee proposed changing image mime type extensions or using a watermark.
- WhiteWarrior mentioned .htaccess code solutions.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
GumSlone
Administrator Principal · 1,690 posts
#21
You can try this code
<?
$image='[url]http://2wap.org/myimage.gif';[/url]
list($width, $height, $type, $attr) = getimagesize($image);
echo '<div style="margin : 0 0 0 0; padding : 0 0 0 0; background-image : url('.$image.'); background-repeat : no-repeat; height : '.$height.'px;"></div>';
?>
AL
You can try this code
<?
$image='http://2wap.org/myimage.gif';
list($width, $height, $type, $attr) = getimagesize($image);
echo '<div style="margin : 0 0 0 0; padding : 0 0 0 0; background-image : url('.$image.'); background-repeat : no-repeat; height : '.$height.'px;"></div>';
?>
but tht will work only in xhtml pages right?