Tips and best practices for applying Rules in Cloudimage and Filerobot

The Rules are powerful way how to hide watermarks and apply image resizing or filtering parameters invisibly in the image URLs.

You can configure them:

- in the Cloudimage Admin Panel-> page Image Settings -> tab Rules:


- in the Filerobot Asset Hub -> settings -> page Process -> tab Rules:



The Rules configuration has some specifics that are good to be mentioned:

  • Rules work on the principle of simple string matching. They are not Regexes and the Regex syntax and special characters are currently non-applicable for them.
  • the Rules function receives the image URL in a format starting after the "/v7/"-part.
    - if the image URL is
    then the function receives it as "__alias__/image.jpg"
    A rule, matching the keyword "__alias__", will work but another rule like  "/__alias__" will fail because the slash symbol ("/") in its beginning won't be matched.
    Due to the same technical specifics, please do not assign rules that to match your token, CNAME or keywords like "cloudimg", and "v7".

  • Please avoid the rules overlapping. If you create 2 rules that match "_img" and "__img__" respectively, that might lead to unexpected results.

  • When the image URL contains an alias, then the rule should be created to match that alias but not its corresponding value.
    - if the image URL is 
    and __alias__ stays for 
    then the rule should be set up to match "__alias__" (not )

  • The Rules can include Presets

  • You can check this article if you want to learn a handy way how to hide your watermarks so to be invisible in the image URLs.

If you have some specific use case and/or you would like to receive more information on the topic, feel free to contact us and we will be glad to help and to reply to all your questions.

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.