| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Suspended Join Date: Sep 2005 Location: Canada
Posts: 1,373
![]() ![]() ![]() ![]() | mysql stuff with this site on http://shas.taylorhewitt.com ive spent the past 15 minutes constantly deleting spam of this site by a ****ing loser. he is pissing me off so much! it wont end! its set to automaticly submit to the mysql database, then withdraw it and post it there. what can i do so i have to verify it first? thanks |
| |
| | #2 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Have them register first, or do a simple image verification. Ah, these aren't bots. Okay, make sure they can only post maybe... once per day. An easy way, yet easily breakable way to do this is to set a cookie that expires in 24 hours. Then, if the cookie exists as they try to post, do not allow it to be submitted.
Last edited by compuXP; 09-04-2005 at 04:36 PM.
|
| |
| | #3 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | yeah, cookies are a good idea. if u make them register, you can log their IP and set sessions and cookies and then have a lot of fun with them hehe. but seriously, u can set a cookie so that it only allows a certain amount of submissions. sorta like flood control on forums.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #5 (permalink) |
| NamePros Webmaster ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You want to moderate the comments before they go public on your site? I don't know what script you're using, but it should be a simple job for a php coder to modify it to require moderation. In short, add a column to your MySQL table named status and have it default to 0 when new entries are submitted. Then have your site only publically display rows where status=1. Then setup an admin page to view unapproved comments and approve them. |
| |
| | #7 (permalink) | ||||
| NamePros Webmaster ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/121057-mysql-stuff-with-this-site.html I guess you can hire someone to code it for you, or if you want to make it a public project you we can help you code it here in the forum. | ||||
| |
| | #9 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Here... When they post a topic, use this: setcookie("cookiename", "date_here_methinks", 60*60*24); That sets a cookie that expires in 1 day. Then, when they post. if (isset($_COOKIE['cookiename'])) { echo("ERROR > You can only post once per day."); exit; } That should work |
| |
| | #12 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Oh, the *date_here_methinks* thing? PHP Code: $date And that just puts the $date into the cookie as its content. |
| |
| | THREAD STARTER #13 (permalink) |
| Account Suspended Join Date: Sep 2005 Location: Canada
Posts: 1,373
![]() ![]() ![]() ![]() | Thanks. But where do I put this stuff? setcookie("cookiename", "date_here_methinks", 60*60*24); if (isset($_COOKIE['cookiename'])) { echo("ERROR > You can only post once per day."); exit; } |
| |
| | THREAD STARTER #16 (permalink) | ||||
| Account Suspended Join Date: Sep 2005 Location: Canada
Posts: 1,373
![]() ![]() ![]() ![]() |
| ||||
| |
| | #18 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | you have to place the code in the upmost top of the page. if the top page is: <?php // allot fo code do it like this: <?php // the cookie code // allot fo code
__________________ aween web development |
| |
| | #24 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | You see that icon which looks like a set of scales underneath the user's information (to the left)?....yeah
__________________ Encenta - Amazon Associates CMS |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Domain sale. 24 hours only. | HHDomains | Domains For Sale - Make Offer | 1 | 08-09-2004 07:48 PM |
| Lots of domains. All priced to sell fast. Fontdb.com ShareForums.com and many more. | HHDomains | Domains For Sale - Make Offer | 1 | 07-31-2004 01:11 PM |
| Completely Revamped Turnkey Games-Related Site for Sale | gph | Turnkey Websites For Sale | 0 | 07-25-2004 04:30 PM |