[Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]
Originally posted on July 20, 2007:
In the Web Server 6.1 time frame I had hacked together a <Client> tag solution to block external image linking to my site (I'm glad people like my images, but my server has limited bandwidth and I'd rather that my purdy images chew up bandwidth making my site purdy instead of someone else's). This worked great until I began using Gallery 2. Under Gallery2 the URIs for images aren't exactly "clean." They look something like this:
/main.php?g2_view=core.DownloadItem&g2_itemId=10436&g2_serialNumber=2
This obviously won't get caught by my original <Client> tag (it looks specifically for file names that look like, you know, file names), so I've now got an excuse to recreate that bad boy using the <If ...> syntax in Web Server 7.0.