From ea368101c8ce40a473576284616ba801cd66f033 Mon Sep 17 00:00:00 2001 From: henoheno Date: Sun, 29 Apr 2007 23:40:12 +0900 Subject: [PATCH] Domain exposure (simple) --- spam/spam.php | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/spam/spam.php b/spam/spam.php index 074f9b9..d81880b 100644 --- a/spam/spam.php +++ b/spam/spam.php @@ -1,5 +1,5 @@ http://nasty.example.org/?refer=victim.example.org and original + $string = preg_replace( + '#http://' . + '(' . + 'ime\.nu' . '|' . // 2ch.net + 'ime\.st' . '|' . // 2ch.net + 'link\.toolbot\.com' . '|' . + 'urlx\.org' . + ')' . + '/([a-z0-9.%_-]+\.[a-z0-9.%_-]+)#i', // nasty.example.org + 'http://$2/?refer=$1 $0', // Insert + $string + ); + // Domain exposure (See _preg_replace_callback_domain_exposure()) $string = preg_replace_callback( array( -- 2.11.0