spam-prevention

Nginx block from referrer

天大地大妈咪最大 提交于 2019-12-09 06:54:49
问题 I need block all http connections, who have referrer click2dad.net. I write in mysite.conf: location / { valid_referers ~.*http://click2dad\.net.*; if ($invalid_referer = ''){ return 403; } try_files $uri $uri/ /index.php?$args; } But i still see in nginx logs: HTTP/1.1" 200 26984 "http://click2dad.net/view/VUhfCE4ugTsb0SoKerhgMvPXcmXszU" 200, not 403 As it is correct to block all clients from the click2dad.net ? 回答1: It should be noted that an expression will be matched against the text

Is a Captcha and a math question enough for SPAM prevention?

房东的猫 提交于 2019-12-08 23:38:38
One of my websites gets a ton of registration spam. I have a Captcha and a math question on the registration form but it doesn't seem to help much. Am I likely experiencing manual spammers or are my prevention mechanisms not good enough? The registration form is here: http://peaksoverpoverty.org/wp-signup.php Update I've been tracking behavior a bit closer over the past week and this is what a typical request looks like in the access logs: 174.132.130.194 - - [18/Jan/2011:07:24:55 -0600] "GET / HTTP/1.1" 302 20 "http://peaksoverpoverty.org/wp-signup.php" "Mozilla/4.0 (compatible; MSIE 8.0;

x-mailer header, phpmailer and spam filters

佐手、 提交于 2019-12-08 11:40:45
问题 I am a newsletter plugin developer for WordPress (Knews). It uses phpmailer to send. One user has contacted with me about an issue: all his emails (sent through phpmailer) goes to spam. He has solved adding a header param: $mail->XMailer... Phpmailer uses a default x-mailer param (phpmailer) if you doesn't set it, is this value bad for spam filters? What was the better value? Thanks, Carles Reverter. 回答1: Setting an X-Mailer to "gibberish" can increase the bad score of Spam engines, not

Bayesian Network for Spam Filtering

北城余情 提交于 2019-12-08 04:17:58
问题 I want to use Bayesian Network mechanism for spam filtering. How do you think it should look a proper topology of the network? What about naive Bayes model? (The naive Bayes model is sometimes called a Bayesian classifier) 回答1: If you're new to spam filtering, it'd be a good idea to start with something simple like a naive Bayesian classifier. That way you get familiar with the issues involved in handling the data (reading the email, classifying it, storing your lexicon, etc.) without getting

Spotting similarities and patterns within a string - Python

天大地大妈咪最大 提交于 2019-12-08 03:10:20
问题 this is the use case I'm trying to figure this out for. I have a list of spam subscriptions to a service and they are killing conversion rate and other usability studies. The emails inserted look like the following: rogerep_dyeepvu@hotmail.com rogeram_ingramameb@hotmail.com rogerew_jonesewct@hotmail.com roger[...]_surname[...]@hotmail.com What would be your suggestions on spotting these entries by using an automated script? It feels a little more complicated than it actually looks. Help would

PHP Mail is Being Sent to Spam [duplicate]

血红的双手。 提交于 2019-12-07 18:49:54
问题 This question already has answers here : How do you make sure email you send programmatically is not automatically marked as spam? (22 answers) Closed 4 years ago . I know that there are many similar questions on this site, but none of them helped me. I have the following PHP code: <?php $to = "mymail@inbox.com"; $from = "no-reply@heygee.com"; $subject = "Confirm your registration!"; $message = "Please follow this link to confirm your registration: www.bit.ly/32106"; $headers = "MIME-Version:

How to make sure about the ip of the visitor?

本秂侑毒 提交于 2019-12-07 18:42:22
问题 I have a blog aggregation website the stories are ordered by the number of visits I think I am facing a spam of visits because some blogs' stories receive a lot of visits in the same second with efferent ip address my website does not allow visits from the same ip; however, my visitors somehow changing their ips. is their any solution to detect this spam visits?, I wonder how Google adSense solves such a problem? Thanks 回答1: The short answer is that it's impossible to stop a determined

Registration spammer detection with akismet

最后都变了- 提交于 2019-12-07 09:07:24
问题 I have a large list of users that registered through a website without any spam filter active during registration. I would like to distinguish which registered users are likely spammers. I'm trying to use akismet to do this but so far akismet is telling me all users are not spammers. Probably since akismet really is made for comments, which aren't available during registration. What I'm sending akismet is the username, email. For url I use the email domain. For their comment, I use: "Hi, I'm

Avoid emails being considered as spam when sent via a PHP contact form

别等时光非礼了梦想. 提交于 2019-12-06 14:50:30
问题 I’m using the code below to send emails via a contact form. Issue is that the emails go to the spam box every time (in outlook, gmail, etc). I suspect that this due to the fact that there’s a url (the web page URL) in the body of the e-mail. Therefore I was wondering if there’s some workaround (apart for tagging these emails as non-spam in gmail and outlook) in order to keep the URL (I want to keep it) but have the emails not considered as spam. Maybe by re-constructing the URL so that it

Using document length in the Naive Bayes Classifier of NLTK Python

北城以北 提交于 2019-12-06 11:55:35
问题 I am building a spam filter using the NLTK in Python. I now check for the occurances of words and use the NaiveBayesClassifier resulting in an accuracy of .98 and F measure for spam of .92 and for non-spam: 0.98. However when checking the documents in which my program errors I notice that a lot of spam that is classified as non-spam are very short messages. So I want to put the length of a document as a feature for the NaiveBayesClassifier. The problem is it now only handles binary values. Is