Interface IMediaProtectionService
Defines interface for service allowing the protection of URLs with resize-able media content.
[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.")]
public interface IMediaProtectionService
- Extension Methods
Methods
GetProtectedUrl(string)
Protects the given URL against unwanted resizing with hash. URL must be pointing to Kentico endpoint for serving media files.
string GetProtectedUrl(string urlToProtect)
Parameters
urlToProtect
stringURL to protect. Can be both absolute and relative.
Returns
- string