aboutsummaryrefslogtreecommitdiffstats
path: root/rules/regexp/urls.lua
blob: 6dc99f00879838810de170805e017e1413314a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local reconf = config['regexp']

reconf['HAS_GUC_PROXY_URI'] = {
  re = '/[\\.\\/]googleusercontent\\.com\\/proxy/{url}i',
  description = 'Has googleusercontent.com proxy URL',
  score = 1.0,
  group = 'url'
}

reconf['HAS_GOOGLE_REDIR'] = {
  re = '/[\\.\\/]google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/(amp\\/s\\/|url\\?)/{url}i',
  description = 'Has google.com/url or alike Google redirection URL',
  score = 1.0,
  group = 'url'
}

reconf['HAS_GOOGLE_FIREBASE_URL'] = {
  re = '/[\\.\\/]firebasestorage\\.googleapis\\.com\\//{url}i',
  description = 'Contains firebasestorage.googleapis.com URL',
  score = 2.0,
  group = 'url'
}

reconf['HAS_FILE_URL'] = {
  re = '/^file:\\/\\//{url}i',
  description = 'Contains file:// URL',
  score = 2.0,
  group = 'url'
}