Skip to content

Commit

Permalink
Defang suspected phishing URLs from email alerts
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Torrey <jacob@thinkst.com>
  • Loading branch information
ranok committed Jan 25, 2024
1 parent 96ca22b commit cdffe29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/emails/notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@ <h2 style="font-size: 18px;">Basic Details:</h2></td>
{% if BasicDetails['referer'] %}
<tr>
<td class="label" style="background: #eeeeee; font-weight: bold; _border: none; width: 180px; border: 1px solid #cccccc; padding: 5px;">Referer</td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['referer'] | e}}</code></td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['referer'] | replace('http', 'hxxp', 1) | e}}</code></td>
</tr>
{% endif %}
{% if BasicDetails['referrer'] %}
<tr>
<td class="label" style="background: #eeeeee; font-weight: bold; _border: none; width: 180px; border: 1px solid #cccccc; padding: 5px;">Referer</td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['referrer'] | e}}</code></td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['referrer'] | replace('http', 'hxxp', 1) | e}}</code></td>
</tr>
{% endif %}
{% if BasicDetails['location'] %}
<tr>
<td class="label" style="background: #eeeeee; font-weight: bold; _border: none; width: 180px; border: 1px solid #cccccc; padding: 5px;">Location</td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['location'] | e}}</code></td>
<td style="border: 1px solid #cccccc; padding: 5px;"><code>{{ BasicDetails['location'] | replace('http', 'hxxp', 1) | e}}</code></td>
</tr>
{% endif %}
{% if BasicDetails['request_args'] %}
Expand Down

0 comments on commit cdffe29

Please sign in to comment.