HTACCESS Wrappers with PHP
By Robert Plank2005-05-25
The wrap-up
You could also adapt the script to check the HTTP referer (in the variable $_SERVER["HTTP_REFERER"]) to see if the image was called offsite. If it was, the script would put the watermark on there but if you called it from a page on your own site, the image would be shown without one.
Even I have put wrappers to good use. Last year I wrote a product for Teresa King called Codewarden, which uses htaccess wrappers to display all the files of a directory in an encoded JavaScript string in an effort to hide HTML source.
Tutorial pages:
|
|
|||||||||
You might also want to check these out:
|
Leave a Comment on "HTACCESS Wrappers with PHP"
You must be logged in to post a comment.
Link to This Tutorial Page!

