<!--
    Nonfunctional domains:
        - blog.myheritage.*          -> stupid error 29 by incapsula
        - helpcenter.myheritage.*    -> wrong cert (valid for nanorep.com)
	
	Mixed content:
		- iframes on myheritage.* *
	
	* secured by us

    Other MyHeritage rulesets:
	    - Mhcache.com
	    - Myheritageimages.com
-->
<ruleset name="MyHeritage" platform="mixedcontent">
    <!-- .com -->
    <target host="myheritage.com" />
    <target host="*.myheritage.com" />

    <test url="http://myheritage.com/" />
    <test url="http://www.myheritage.com/" />
    <test url="http://lastnames.myheritage.com/" />
    <test url="http://secure.myheritage.com/" />

    <!-- .no -->
    <target host="myheritage.no" />
    <target host="*.myheritage.no" />

    <test url="http://myheritage.no/" />
    <test url="http://www.myheritage.no/" />

    <!-- .nl -->
    <target host="myheritage.nl" />
    <target host="*.myheritage.nl" />

    <test url="http://myheritage.nl/" />
    <test url="http://www.myheritage.nl/" />

    <!-- .de -->
    <target host="myheritage.de" />
    <target host="*.myheritage.de" />

    <test url="http://myheritage.de/" />
    <test url="http://www.myheritage.de/" />

    <!-- .dk -->
    <target host="myheritage.dk" />
    <target host="*.myheritage.dk" />

    <test url="http://myheritage.dk/" />
    <test url="http://www.myheritage.dk/" />

    <!-- .se -->
    <target host="myheritage.se" />
    <target host="*.myheritage.se" />

    <test url="http://myheritage.se/" />
    <test url="http://www.myheritage.se/" />

    <!-- .fr -->
    <target host="myheritage.fr" />
    <target host="*.myheritage.fr" />

    <test url="http://myheritage.fr/" />
    <test url="http://www.myheritage.fr/" />

    <!-- .fi -->
    <target host="myheritage.fi" />
    <target host="*.myheritage.fi" />

    <test url="http://myheritage.fi/" />
    <test url="http://www.myheritage.fi/" />

    <!-- .br -->
    <target host="myheritage.br" />
    <target host="*.myheritage.br" />

    <test url="http://myheritage.br/" />
    <test url="http://www.myheritage.br/" />

    <!-- .com.br -->
    <target host="myheritage.com.br" />
    <target host="*.myheritage.com.br" />

    <test url="http://myheritage.com.br/" />
    <test url="http://www.myheritage.com.br/" />

    <!-- .com.il -->
    <target host="myheritage.com.il" />
    <target host="*.myheritage.com.il" />

    <test url="http://myheritage.com.il/" />
    <test url="http://www.myheritage.com.il/" />

    <!-- .es -->
    <target host="myheritage.es" />
    <target host="*.myheritage.es" />

    <test url="http://myheritage.es/" />
    <test url="http://www.myheritage.es/" />

    <!-- .pl -->
    <target host="myheritage.pl" />
    <target host="*.myheritage.pl" />

    <test url="http://myheritage.pl/" />
    <test url="http://www.myheritage.pl/" />

    <!-- https://regex101.com/r/fT8rK6/6 -->
    <exclusion pattern="^http://(blog|helpcenter)\.myheritage\.(com\.br|co\.il|no|nl|de|dk|se|fr|fi|es|pl)" />
	
    <test url="http://blog.myheritage.com/" />
    <test url="http://helpcenter.myheritage.com/" />
    <test url="http://blog.myheritage.br/" />
    <test url="http://helpcenter.myheritage.br/" />
    <test url="http://blog.myheritage.co/" />
    <test url="http://helpcenter.myheritage.co/" />
    <test url="http://blog.myheritage.il/" />
    <test url="http://helpcenter.myheritage.il/" />
    <test url="http://blog.myheritage.no/" />
    <test url="http://helpcenter.myheritage.no/" />
    <test url="http://blog.myheritage.nl/" />
    <test url="http://helpcenter.myheritage.nl/" />
    <test url="http://blog.myheritage.de/" />
    <test url="http://helpcenter.myheritage.de/" />
    <test url="http://blog.myheritage.dk/" />
    <test url="http://helpcenter.myheritage.dk/" />
    <test url="http://blog.myheritage.se/" />
    <test url="http://helpcenter.myheritage.se/" />
    <test url="http://blog.myheritage.fr/" />
    <test url="http://helpcenter.myheritage.fr/" />
    <test url="http://blog.myheritage.fi/" />
    <test url="http://helpcenter.myheritage.fi/" />
    <test url="http://blog.myheritage.es/" />
    <test url="http://helpcenter.myheritage.es/" />
    <test url="http://blog.myheritage.pl/" />
    <test url="http://helpcenter.myheritage.pl/" />

    <!-- https://regex101.com/r/iN4bF4/6 -->
    <securecookie host="^(?!blog|helpcenter)(\w*\.)?myheritage\.(com\.br|co\.il|com|no|nl|de|dk|se|fr|fi|es|pl)" name=".+" />

    <rule from="^http:"
            to="https:" />
</ruleset>
