Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
IP Spam Control on Comments
Old 04-24-2005, 07:20 AM IP Spam Control on Comments
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
I have a comments system set up (finally), but there's one thing I want to do before I'm satisfied:

Make it so that a single IP can only post one comment in a row, as to prevent spamming (as best I can). Either that, or a system that prevents them from posting another comment for 10 minutes...

Anything simple, actually.
Bloodsyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-24-2005, 07:43 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
couple of ways;

one is to have a db and store the IP and a timestamp in it then check that before posting, an advantage here of course is you can have a permanent flag to allow banning of persistent offenders or spam posting bots. But a simple solution would be a cookie stored time stamp.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-24-2005, 08:06 AM
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
Ah, alright. I'll probably do the database enhanced once, because banning might be useful in the future.
Bloodsyne is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IP Spam Control on Comments
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11189 seconds with 12 queries