 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Wed Dec 08, 2004 2:10 am Post subject: |
|
|
kiss wrote: | Cyberian75 wrote: | kiss wrote: | imam try this one out becuz the other makes ALL my comments identified as spam |
This one only filters links with those keywords.
 |
So what does the other one do? |
Read the very first post in that thread. _________________ Michael P.
 |
|
Back to top |
|
 |
ghoti
Joined: 27 Jul 2004 Posts: 8
|
Posted: Thu Dec 09, 2004 7:47 pm Post subject: |
|
|
I added this code above the if($ok) { line:
Quote: |
$wordlist = Array(
"poker",
"gambling",
"blackjack",
"casino",
"free",
"holdem",
"texas"
);
foreach ($wordlist as $keyword)
if (eregi("<\ *a\ *href\ *\=.+>.*".$keyword.".*<\ *\/a\ *>", $original_comment))
$ok = false;
|
and when I try to comment on my blog, I still get this error:
Parse error: parse error, unexpected T_STRING, expecting ')' in /home/storm7/public_html/home/b2comments.post.php on line 92
Line 92 says this:
"poker",
Earlier, I had simply disabled my comments by adding some nonsense to the code. Nobody could comment, but whenever I added a new post, a comment from the gambling sites would show up automatically. What have they done to me? |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Thu Dec 09, 2004 10:44 pm Post subject: |
|
|
http://www.cafelog.com/board/viewtopic.php?t=5891
ghoti wrote: | Earlier, I had simply disabled my comments by adding some nonsense to the code. Nobody could comment, but whenever I added a new post, a comment from the gambling sites would show up automatically. What have they done to me? |
They simply posted their ads with higher post IDs. Use one of the hacks, or logon to phpMyAdmin, and delete them. _________________ Michael P.
 |
|
Back to top |
|
 |
tierra
Joined: 30 Nov 2004 Posts: 5
|
Posted: Fri Dec 10, 2004 7:27 pm Post subject: |
|
|
Cyberian75 also likes to add in another un-expected variable that makes common spam bots have no effect at all on the site (his verified variable). But code has to be added in a couple places for that, and if you miss adding something, no-one will be able to post comments at all. So I just mentioned using only the keyword block so you wouldn't be as confused and lock everyone out. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|