Developer forum

Forum » Development » Limit the use of the image handler

Limit the use of the image handler

Martijn van Tongeren
Reply

Dynamicweb has a nice image handler for manipulating images on the fly (Admin/Public/GetImage.ashx). But how do I limit the use of this handler to only allow a predefined set of values?

The reason I ask this is because someone who want to do harm, could easily write a script that continuously requests different large resolutions. This would result in a very high CPU load and since the images are also being cache on the disk, the disk-space would run out pretty fast too,


Replies

 
Nicolai Pedersen
Reply

You cannot set that.

You can easily create a notification subscriber that listens to width & height querystring parameters and throws exceptions.

BR Nicolai

 

You must be logged in to post in the forum