You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by hs...@apache.org on 2005/12/27 22:58:22 UTC

svn commit: r359297 - /spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf

Author: hstern
Date: Tue Dec 27 13:58:20 2005
New Revision: 359297

URL: http://svn.apache.org/viewcvs?rev=359297&view=rev
Log:
 * 20_uri_tests.cf: Added redirector_pattern for Google.com/url redirector.

Modified:
    spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf

Modified: spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf
URL: http://svn.apache.org/viewcvs/spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf?rev=359297&r1=359296&r2=359297&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf (original)
+++ spamassassin/rules/trunk/sandbox/hstern/20_uri_tests.cf Tue Dec 27 13:58:20 2005
@@ -26,6 +26,17 @@
 # e.g. http://www.pmachine.com/ee/knowledgeblog/?URL=http://www.google.com
 redirector_pattern m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&\#])'i
 
+# Google redirector.
+# Common form:
+# http://www.google.com/url?sa=U&start=4&q=http://urlofspammer 
+#	-> http://urlofspammer
+# Unhandled form:
+# http://www.google.com/url?q=http://urlofspammer/space&q=here
+#	-> http://urlofspammer/space%20here
+#	Redirector gets http://urlofspammer/space
+# http://www.google.com/url?q=http://urlof&q=spammer does not work
+redirector_pattern m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&\#])'i
+
 uri __HS_GEOCITIES_URI m'^https?:/*(?:[a-z]+\.)*geocities\.(?:com|yahoo\.com)(?:\.[a-z]{2})?(?:$|[/\#?])'i
 uri __HS_TRIPOD_URI m'^https?:/*(?:[a-z]+\.)*tripod\.com(?:$|[/\#?])'i
 uri __HS_MSNSPACES_URI m'^https?:/*spaces.msn.com/[a-z0-9_\-](?:$|[/\#?])'i