kitbogashow / how-to-fix-paypal

Various ways to filter text emails to stop scammers from exploiting PayPal's invoice system.
MIT License
46 stars 31 forks source link

PHP heuristic-based solution #35

Closed patthomasrick closed 1 year ago

patthomasrick commented 1 year ago

Calculates a spammyness score based of various factor like phone number presence, crypto currency references, special characters, etc. Primarily uses regex to analyze text.

Meant to be modular and somewhat simple to add more filters. Score is between 0 and 1. Filter doesn't perform well since the weights for the various filters need to be tweaked, and this is more of a proof of concept.