At 6:18 AM -0700 7/26/07, elk dolk wrote:
Hi all,
I want to hide the real URL to my images by masking it with PHP
the code looks like this:
if you look at the source in browser you will see:
<img src='http://www.mysite.com/img/111.jpg' />
how can I show it like this:
<img src='show.php?FileName=111.jpg' />
elk:
Yes, but for what purpose do you want to hide the image url, for
protection? If so, if the user can see your image, then they already
have it.
If you want to pretty up your url's so that they look nice, there's
several ways to do it as suggested on this list.
Additionally, you can use a mod-rewrite to do that -- you can read
about it here:
http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html
Neat stuff, but it doesn't protect your images.
There's a couple of "protect your image" schemes that will frustrate
the typical user, but they can be easily broken, like the one I
created here:
http://www.webbytedd.com/b/protect_image/
Others might have done it, but I haven't seen anyone do it this way.
Cheers,
tedd
PS: Okay guys, I know all of you can find where my dog picture
actually is, but the point is can the typical user?
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php