PDA

View Full Version : Spam Reduction


shahram
07-30-2005, 03:10 PM
Just a short and quick note for the spam control:
I read a couple of thread couple of weeks ago and could not find it now. Neverthe less I found this one very usefull and I am leaving it here for the other which would like to use it.
It is not my work and I have just added the webpages that was pinign on my site one should add more. It would alos be great if the developer consider these ones or make a data base to add more to thses ones:
So here is what you should do.
1- make a File "no-refer-spam.php" wiht note pad.
2- add the following line and sve it:

<?php
/*
Script Name: No Refer Spam
Version: 1.00
Hack URI: http://frenchfragfactory.net/ozh/archives/2005/02/05/no-refer-spam/
Description: Send refer spammers back to their own sites
Author: Ozh
Author URI: http://planetOzh.com
*/

$spams = array (
"terashells.com", "chat-nett.com", "exitq.com", "cxa.de", "sysrem03.com",
"pharmacy.info", "guide.info", "drugstore.info",
"coresat.com", "psxtreme.com", "freakycheats.com", "cool-extreme.com",
"pervertedtaboo.com", "crescentarian.net", "texas-holdem", "fuck-fest", "yelucie.com",
"poker-online", "findwebhostingnow.com", "smsportali.net", "6q.org", "flowersdeliveredquick.com",
"ronnieazza", "lemonrider", "future-2000", "trackerom.com", "andrewsaluk.com", "4u.net", "4u.com", "doobu.com",
"nutzu", "italiancharms", "likejazz", "kloony", "isacommie.com", "musicbox1.com", "tigerspice", "roody.com",
"bigsitecity", "zs1.biz", "yesno.spb.ru", "newru.net", "9k.com", "cialis", "levitra", "viagra", "tramadol",
"phentermine", "7h.com", "hydrocodone", "phentermine-hcl.zu5.net", "family.celerier.be", "incest-stories", "teeeeeen.com",
"incest-porn", "family-incest", "forever.kz", "buy-buy-buy.com", "amateurvoetbal.net", "alleghanyeda.com",
"freespaces.com", "nnetzx.net", "itrama.notlong.com", "findhere.org", "dynu.com", "my-drugs.com", "euro-drugs.com",
"all-medications.com", "first-pharmacy.net", "first-drugstore.com", "ringtone-melodies.info", "car-insurance-best.info",
"acurapharma.ac.funpic.org", "amovoce.net", "quesaudade.net", "axionfootwear.com", "edthompson.com", "conecrusher.org",
"codychesnutt.com", "sbj-broadcasting.com", "artsmallforsenate.com", "candiria.com", "protzonbeer.com", "carisoprodol.e1.com.br",
"buy-buy-buy.com", "pizdeckakojto.com", "ringtone-and-logo.info", "airline-ticket-agencies.com", "huytebe.com",
"travel-airline-ticket.info", "car-insurance-price.net", "euro.tm", "index.vg", "sauna-for-you.com", "only-price-travel.com",
"edu.tc", "pulsar.net", "subito.cc", "only-wireless-service.com", "feathersandfurvanlines.com", "jroundup.com",
"ergvrtibkj33.com", "wb.st", "olo.cc", "online-dating-4you.com", "ultraringtone.com", "payless-cars-rental.com",
"forced-sex.wb.s", "liveplanets.com", "aeterna-tech.com", "continentaltirebowl.com", "foxmediasolutions.com",
"globaleducationeurope.net", "only-real-estate.net",

);


$ref = $_SERVER["HTTP_REFERER"];

if ($ref) {
foreach ($spams as $site) {
$pattern = "/$site/i";
if (preg_match ($pattern, $ref)) {
header("Location: $ref"); exit();
}
}
}
?>
3-upload the file into the root of the pixle post
4- add foloowing line to the index.php in the root of pp. Just scroll down and you will fing the require commands. add this one after them.

require("no-refer-spam.php");

5- check for Rob's spam addon and rmeove the spams from you data base. I am sure that Ramina has also uploaded it somewhere!
Shahram