Skip to content

Instantly share code, notes, and snippets.

@knightshrub
Last active March 9, 2021 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knightshrub/8fc4c5c4e39441375c4a2c0346a17be0 to your computer and use it in GitHub Desktop.
Save knightshrub/8fc4c5c4e39441375c4a2c0346a17be0 to your computer and use it in GitHub Desktop.
Remove User-Agent header using Rspamd
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