Skip to content

Commit 90a6e40

Browse files
ngayeriepedrosousa
andauthored
[WAF] Update email obfuscation notes and add warning (#26211)
Added a warning about using email obfuscation with template tags. CUSTESC-56930 --------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent 62a06d5 commit 90a6e40

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/content/docs/waf/tools/scrape-shield/email-address-obfuscation.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To prevent Cloudflare from obfuscating specific email addresses, you can:
5252

5353
- Add the following comment in the page HTML code:
5454

55-
```
55+
```html
5656
<!--email_off-->[email protected]<!--/email_off-->
5757
```
5858

@@ -66,20 +66,20 @@ To prevent Cloudflare from obfuscating specific email addresses, you can:
6666

6767
To prevent unexpected website behavior, email addresses are not obfuscated when they appear in:
6868

69-
- Any HTML tag attribute, except for the _href_ attribute of the _a_ tag.
69+
- Any HTML tag attribute, except for the `href` attribute of the `a` tag.
7070
- Other HTML tags:
71-
- _script_ tags: `<script></script>`
72-
- _noscript_ tags: `<noscript></noscript>`
73-
- _textarea_ tags: `<textarea></textarea>`
74-
- _xmp_ tags: `<xmp></xmp>`
75-
- _head_ tags: `<head></head>`
71+
- `<script></script>`
72+
- `<noscript></noscript>`
73+
- `<textarea></textarea>`
74+
- `<xmp></xmp>`
75+
- `<head></head>`
7676
- Any page that does not have a MIME type of `text/html` or `application/xhtml+xml`.
7777

78-
:::note
79-
80-
Email Obfuscation will not apply in the following cases:
78+
:::note[Notes]
8179

82-
- You are using the `Cache-Control: no-transform` header.
83-
- The HTML/JS code is specifically added by a [Worker](/workers/).
80+
- Email Obfuscation will not apply in the following cases:
81+
- You are using the `Cache-Control: no-transform` header.
82+
- The HTML/JavaScript code is specifically added by a [Worker](/workers/).
83+
- Email Obfuscation might not work as expected when the HTML page includes `<template></template>` tags.
8484

8585
:::

0 commit comments

Comments
 (0)