spam-prevention

Detecting a (naughty or nice) URL or link in a text string

久未见 提交于 2019-11-29 20:20:54
How can I detect (with regular expressions or heuristics) a web site link in a string of text such as a comment? The purpose is to prevent spam. HTML is stripped so I need to detect invitations to copy-and-paste. It should not be economical for a spammer to post links because most users could not successfully get to the page . I would like suggestions, references, or discussion on best-practices. Some objectives: The low-hanging fruit like well-formed URLs ( http://some-fqdn/some/valid/path.ext ) URLs but without the http:// prefix (i.e. a valid FQDN + valid HTTP path) Any other funny business

Currently best spam filter algorithm

岁酱吖の 提交于 2019-11-29 14:57:08
问题 What is the currently best method to detect spam ? especially on mobile text message. are there any resource or comparison analysis ? 回答1: It's good to look into supervised learning techniques. There've been a number of studies where the Multinomial Naive Bayes Classifier has been used for spam email filtering with a lot of success. If it worked for spam email filtering, then it should work with SMS filtering. What you need is a huge dataset of example spam SMS texts and train the classifier

Do you hide email addresses to “spam bots” on websites?

自闭症网瘾萝莉.ら 提交于 2019-11-29 14:45:07
问题 Although there are still bots harvesting emails, I'm wondering if you hide email addresses on websites. I know this was common practice a few years back, but it seems that it's starting to fade. Reasons not to: most email servers include quality spam protection, including services such as Gmail and hardly any gets through it's annoying to code as you have to remember and searching to change the email later can be tricky no method will prevent any harvesting Reasons to: avoid getting on lists

What's the best open PHP newsletter manager? [closed]

一个人想着一个人 提交于 2019-11-29 14:34:24
问题 I'm looking for a nice newsletter management solution. I tried CCmail a good script, but where I can't imort usernames! I would like to find a system that is able to import Opt-in lists in the following format: John Smith;Jsmith@johnny.com;other paramaeters...;[like] ;Male;Age... I will develop my own module if I could find another emailing manager. Are you already satisfied with a similar application with a trusted (spam-prevention) emailer? 回答1: http://www.phplist.com is considered one of

Is it worth obfuscating email addresses on the web these days?

99封情书 提交于 2019-11-28 23:27:36
There are various ways to obfuscate email addresses on the web, but most of them don't work when you need to have a mailto: href. I generally use name[AT]domain.com , because I think it's fairly obvious to the user what they have to do to get a real email address, but I wonder if there's any benefit to this (as it's easy to automate by a spammer). I'm aware of the services which hide the email address behind a captcha, but to me this is too much work for the user. So, two questions: Is there any way that (a) retains the use of mailto: links, (b) will stop spammers and (c) isn't too complicated

Stop spam without captcha

ⅰ亾dé卋堺 提交于 2019-11-28 17:55:31
I want to stop spammers from using my site. But I find CAPTCHA very annoying. I am not just talking about the "type the text" type, but anything that requires the user to waste his time to prove himself human. What can I do here? Requiring Javascript to post data blocks a fair amount of spam bots while not interfering with most users. You can also use an nifty trick: <input type="text" id="not_human" name="name" /> <input type="text" name="actual_name" /> <style> #not_human { display: none } </style> Most bots will populate the first field, so you can block them. Integrate the Akismet API to

Neural networks for email spam detection

假装没事ソ 提交于 2019-11-28 17:13:22
问题 Let's say you have access to an email account with the history of received emails from the last years (~10k emails) classified into 2 groups genuine email spam How would you approach the task of creating a neural network solution that could be used for spam detection - basically classifying any email either as spam or not spam? Let's assume that the email fetching is already in place and we need to focus on classification part only. The main points which I would hope to get answered would be:

Blacklist of words on content to filter message [closed]

孤街浪徒 提交于 2019-11-28 11:48:52
For a website that takes input from kids we need to filter any naughty / bad words that they use when they enter their comments in the website (running PHP). The comments are a free field and users can enter whatever comments they want. The solution I can think of is to have a words list like BLACKLIST: bad,bad,word,woord,craap,craaaap, (We can fill this with all the blacklisted words). Then when the form is saved we can look at the list and if any of the words are present then we will not allow the comment to be saved. BUT the prolem with this method is that they can get around by adding

Is this mail() function safe from header injection?

孤者浪人 提交于 2019-11-28 10:00:33
I'm building a simple contact form for a website. It does not connect to a database, it just sends the email. Will this code prevent spammers from using header injections? Are there any vulnerabilities I'm not seeing? //create short variable names $name= filter_var($_POST['Name'],FILTER_SANITIZE_STRING); $email= filter_var($_POST['Email'],FILTER_SANITIZE_STRING, FILTER_VALIDATE_EMAIL); $subject= filter_var($_POST['Subject'],FILTER_SANITIZE_STRING); $message= filter_var($_POST['Message'],FILTER_SANITIZE_STRING); //set up some static information $toaddress = 'blah@localhost.com,blahblah

mail delivered as spam - phpmailer, how to avoid

╄→尐↘猪︶ㄣ 提交于 2019-11-28 08:50:31
I know that in first look many users mark this question as duplicate, but after reading more than 10 question I did not get any satisfactory answer, almost all question has answers having words like "There's not much you can do about it.", "I am not sure", "There is no sure shot trick" etc. that's why I am writing this question, and I think this is very generalized questions and every php developer faces it at least once, ok enough speech :) , now my question is.. I working on a project management application and am using phpmailer to send mail when any task is created or anybody comments on