comparison mod_ogp/README.markdown @ 4598:09f0911c735d

mod_ogp: Add the ability to block OGP fetching for certain domains
author JC Brand <jc@opkode.com>
date Tue, 22 Jun 2021 12:25:36 +0200
parents c858c76d0845
children
comparison
equal deleted inserted replaced
4597:c858c76d0845 4598:09f0911c735d
18 The module is intentionally simple in the sense that it is basically a transport for https://ogp.me/ 18 The module is intentionally simple in the sense that it is basically a transport for https://ogp.me/
19 19
20 Configuration 20 Configuration
21 ------------- 21 -------------
22 22
23 You can present a whitelist of domains for which OGP metadata will be fetched 23 You can present an allowlist or denylist of domains for which OGP metadata will be fetched
24 via the `ogp_domain_whitelist` setting. 24 via the `ogp_domain_allowlist` and `ogp_domain_denylist` settings repectively.
25 25
26 For example: 26 For example:
27 27
28 ```lua 28 ```lua
29 Component "muc.example.org" "muc" 29 Component "muc.example.org" "muc"
30 modules_enabled = { "ogp" } 30 modules_enabled = { "ogp" }
31 ogp_domain_whitelist = { "prosody.im" } 31 ogp_domain_allowlist = { "prosody.im" }
32 ``` 32 ```