Last active
March 9, 2021 15:46
-
-
Save knightshrub/8fc4c5c4e39441375c4a2c0346a17be0 to your computer and use it in GitHub Desktop.
Remove User-Agent header using Rspamd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'lua_mime' | |
rspamd_config.REMOVE_UA = { | |
callback = function(task) | |
lua_mime.modify_headers(task, {remove = {['User-Agent'] = 0}}) | |
end, | |
score=0.0, | |
description = 'Remove User-Agent header', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment