<!--
	Problematic subdomains:

		- chat *
		- company *
		- downloads *
		- games *
		- greetings *
		- people *

	* (mismached, CN: WWW.ICQ.COM)


	Partially covered subdomains:

		- chat *
		- company *
		- downloads *
		- games *
		- greetings *
		- people *

	* → www


	Fully covered subdomains:

		- (www.)
		- c
		- wlogin
		- xtraz
-->
<ruleset name="ICQ.com">

	<target host="icq.com" />
	<target host="*.icq.com" />
		<exclusion pattern="^http://chat\.icq\.com/(?!$|\?|icqchat(?:$|\?|/)|img/|js/)" />
		<exclusion pattern="^http://company\.icq\.com/(?!$|\?|info(?:$|\?|/))" />
		<exclusion pattern="^http://downloads\.icq\.com/(?!$|\?|assets/|cached/|downloads(?:$|\?|/))" />
		<exclusion pattern="^http://games\.icq\.com/(?!$|\?|games(?:$|\?|/))" />
		<exclusion pattern="^http://greetings\.icq\.com/(?!$|\?|greetings(?:$\?|/))" />
		<exclusion pattern="^http://people\.icq\.com/(?!$|\?|people(?:$|\?|/))" />


	<securecookie host="^(?:www)?\.icq\.com$" name=".+" />


	<rule from="^http://chat\.icq\.com/(\?.*)?$"
		to="https://www.icq.com/icqchat/$1" />

	<rule from="^http://company\.icq\.com/(\?.*)?$"
		to="https://www.icq.com/info/$1" />

	<rule from="^http://download\.icq\.com/(\?.*)?$"
		to="https://www.icq.com/download/icq/$1" />

	<rule from="^http://(games|greetings|people)\.icq\.com/(\?.*)$"
		to="https://www.icq.com/$1/$2" />

	<rule from="^http://((?:c|chat|greetings|people|wlogin|www|xtraz)\.)?icq\.com/"
		to="https://$1icq.com/" />

</ruleset>