~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-proposed

« back to all changes in this revision

Viewing changes to rules/20_uri_tests.cf

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville, Ubuntu Merge-o-Matic, Laurent Bigonville
  • Date: 2006-07-31 15:40:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060731154008-j37ulp5pgfkddegw
Tags: 3.1.3-1ubuntu1
[ Ubuntu Merge-o-Matic ]
* Merge from debian unstable.

[ Laurent Bigonville ]
* fix debian/control.
* drop debian/patches/40_fix_dns_issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
redirector_pattern      m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&\#])'i
34
34
redirector_pattern      m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
35
35
 
 
36
# ExpressionEngine redirector
 
37
# see http://www.pmachine.com/forums/viewthread/29561/
 
38
# e.g. http://www.someEEBasedSite.com/index.php?URL=http://www.NastyPR0nSite.com
 
39
# e.g. http://www.pmachine.com/ee/knowledgeblog/?URL=http://www.google.com
 
40
redirector_pattern m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&\#])'i
 
41
 
 
42
# Google redirector.
 
43
# Common form:
 
44
# http://www.google.com/url?sa=U&start=4&q=http://urlofspammer
 
45
#       -> http://urlofspammer
 
46
# Unhandled form:
 
47
# http://www.google.com/url?q=http://urlofspammer/space&q=here
 
48
#       -> http://urlofspammer/space%20here
 
49
#       Redirector gets http://urlofspammer/space
 
50
# http://www.google.com/url?q=http://urlof&q=spammer does not work
 
51
redirector_pattern m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&\#])'i
 
52
 
 
53
# Google site search
 
54
# http://www.google.com/search?q=site:bluevallet.com
 
55
#       -> links to http://www.bluevallet.com/
 
56
redirector_pattern m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&\#])'i
 
57
 
 
58
# Google search for pages that contain the site name
 
59
# http://www.google.com/search?q="bluevallet.com"
 
60
# http://www.google.com/search?q=%22bluevallet.com%22
 
61
#       -> links to search page that probably has http://bluevallet.com
 
62
#          at the top
 
63
redirector_pattern m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&\#])'i
 
64
 
 
65
# Google translate
 
66
# http://translate.google.com/translate?u=www.domain.tld&langpair=en%7Cen&hl=en
 
67
#       -> http://www.domain.tld inside a frame
 
68
redirector_pattern m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&\#])'i
 
69
 
 
70
 
36
71
uri NUMERIC_HTTP_ADDR           /^https?\:\/\/\d{7}/is
37
72
describe NUMERIC_HTTP_ADDR      Uses a numeric IP address in URL
38
73