Skip to content

Instantly share code, notes, and snippets.

View ppcdias's full-sized avatar
🎯
Focusing

Pedro Dias ppcdias

🎯
Focusing
View GitHub Profile
@ppcdias
ppcdias / exim-filter-spam.sh
Created June 27, 2024 18:55
Exim Custom Filter for Identifying Specific Words in Spam Emails
# Custom Filter for Identifying Specific Words in Emails
# This filter blocks emails containing certain spam-related keywords.
# Exim filter to match specific words in the email body text
# (?i) makes the match case insensitive
if $body_text matches "(?i)Viagra|pussy|sex|sexy|****|porno|girlfriend|keylogger|Cialis|hacked|garantie|sexual|Levtira|antiviruses|bored|sexo|pornografia|hackeado"
then
# Block the email with a custom message
fail text "Mensagem bloqueada devido à nossa política anti-spam."
# Mark the message as processed and stop further filtering
@ppcdias
ppcdias / csf.txt
Created February 13, 2025 00:48
cPanel ConfigServer Firewall (csf) Installation
###############################################################################
# Copyright 2006-2018, Way to the Web Limited
# URL: http://www.configserver.com
# Email: [email protected]
###############################################################################
Installation
============
Installation is quite straightforward: