auto ban script xhtml

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

8 replies · 626 views · started 16 years ago · 1 min read

5 participants
realcoder Junior · 17 posts #1

i want a codeing that auo bans the user for spamming and sends a pm to the owner saying the user has been banned for spamming

brandon rules the codeing industry

GiLL Senior · 356 posts #2

which script are you using ?

left wap stuff

realcoder Junior · 17 posts #3

i have the waplive script

Lavalair edited version (xhtml)

brandon rules the codeing industry

thanatos Senior · 261 posts #5

use the SEARCH button. if people are lazy to search and want everything to be spoon fed, SEARCH function should be removed.. LoL! 😀

djlee Developer · 224 posts #8

sounds silly to me, why not be proactive and stop spamming before it happens rather than banning someone after the damage has been done. Heres a few ideas:

  1. Message timer: you can only send 1 message every 2 minutes (i think thats fair) . Example theory code, wont work on any specific source Something like this should go before the message is inserted (this way people can still write the message but not send it, i recommend adding a timer to the message creation page if their is a wait time so people know not to hit the send button until the timer has elapsed, you could use javascript to make it tick down for javascript enabled browsers.
$time = time() - 120; //the 2 minute wait time
$res=mysql_query("SELECT id FROM messages WHERE sent >= $time LIMIT 1");
if(mysql_num_rows($res) > 0)
 die("2 minute wait time in effect");
  1. Stop duplicate messages from a single user, this has a timer of 1 hour, this means a duplicate message cant be sent by the same user unless the duplicate already in the database is atleast 1 hour old. ive added a timer so that if someone sends just "lol" as a reply then it wont error out as they sent lol to someone else 5 days ago.
$body = $_POST['body'];
$time = time()-3600;
$res = mysql_query("SELECT id FROM messages WHERE sent >= $time AND body LIKE '".$body."' LIMIT 1");
if(mysql_num_rows($res) > 0)
die("feck off");
  1. You could also change the above two by appending them to a reply, so people can reply without the wait timer or duplicate message, but can initiate a conversation with a dupe message or in less than 2 mins since last message

There are many things you can do to stop spamming before it happens, a ban for spamming script should be a last resort or after thought, since there is lag time between detection and message purging the damage could have already taken effect.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close