Sparda Posted July 2, 2006 Share Posted July 2, 2006 I'm going to examine phpBB and work out how to defeate the spammers! I may need some help (most likly coding help). Quote Link to comment Share on other sites More sharing options...
l0gic Posted July 2, 2006 Share Posted July 2, 2006 You shouldn't need to review the source; just consider how the registration and posting system works. Also consider how many very skilled developers have been tackling the problem of spam for many years with no solid solution in sight. Not to discourage you, of course. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 I'm nearly there, so far I'v made it imposible to post if you have less then 20 posts (easily changed). Obviusly this needs to be 10 posts and have posted urls in yor message. Then the next step from that is to auto ban people who post urls and have 10 posts or less and auto ban people who make there first 10 posts in 5 minuets. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 ANy chance one one can give me me the sytax of a function that will check if a string is present in another string and will return either true or false? Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Never mind, I found one that will do for now... Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2006 Share Posted July 2, 2006 so far I'v made it imposible to post if you have less then 20 posts (easily changed). . how do you get more then 20posts to post if you cant post without having more then 20posts. And as for the problem of stopping spam, if it is such a big problem just have every post go to the mod of the forum for approval before they show up in the forum. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 You miss the point spider, i was making it so that users can't post if they had less then 20 posts in anticipation of making it so they can't post if thay have less then 20 posts and have a url in there post. Aditionaly, it works! :D Guess I can call my self a php coder after all :D All you have to do to ge it to work is insert this code $profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]); on to line 550 of the file posting.php (After "case 'reply':") and then this code if ( ( ($profiledata['user_posts'] <= 20) && (substr_count($HTTP_POST_VARS['message'],"url") == 0) && (substr_count($HTTP_POST_VARS['message'],"http") == 0)) || ($profiledata['user_posts'] > 20) ) { } In to lines 551 (ending 570), 583 (ending 589) and 596 (ending 613). Does any body see any problems with my code? Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Problems with this: If the post is considered "Invalid" the poster is met with a blank notification screen. I'm not 100% sure why yet, i'll work it out. Quote Link to comment Share on other sites More sharing options...
revolations2525 Posted July 2, 2006 Share Posted July 2, 2006 Just asking, But for people like me that dont post very often, but more of the less read the forum for informations, and only post to topics that interest them, in any subject matter. But for me, I rarly ever post. But I will only post to a subject matter that I now. Will they or people like me be effected but the fix or the problem that you are trying to fix? P.S: But i do see what you mean, and it is a very good idea. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 I'm sure we can come up with some kind of medium. 20 posts is a bit high I know. Perhaps it should be a 1 URL limite per post befor a user has 20 posts? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2006 Share Posted July 2, 2006 You miss the point spider, i was making it so that users can't post if they had less then 20 posts in anticipation of making it so they can't post if thay have less then 20 posts and have a url in there post. Theres still a problem, who decides if the post is in anticipation, it still needs some kind of mod to look at each post like it does now. I might just be messing something. But as for the php code i dont see anything wrong with it. Quote Link to comment Share on other sites More sharing options...
Snowy© Posted July 2, 2006 Share Posted July 2, 2006 testing - hmmm the http:// is not in the original message: url=www.hakr.org]testing[/url www.hak5.org - and here neither the display portion of the BB system must be adding it: url]www.hak5.org[/url So will your code still work? as I'm looking at it (I don't know PHP though) I think it looks at the original message for the string "http" within your message that is sent to the back end database... this message being interpreted and the is only http added when it's sent to the front end for people to view. Maybe look for the tag instead or anything with www. in it???? Whoopse I missread you have the 'url' in there already nice :) Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 testing - hmmm the http:// is not in the original message: url=www.hakr.org]testing[/urlwww.hak5.org What? My code isn't running on the hak5.org server... yet... it's running on my own server... for tesing purposes... Quote Link to comment Share on other sites More sharing options...
Snowy© Posted July 2, 2006 Share Posted July 2, 2006 Sorry I was testing and I edited it see above... just me wondering is all :) sorry to bug ya - nice to see you found a worthy project :) Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Still havn't worked out why the notification page is blank. Any one have any clues that have more experiance with phpBB? Quote Link to comment Share on other sites More sharing options...
cooper Posted July 2, 2006 Share Posted July 2, 2006 So tell me, how are you going to fix it so that spammers don't put their advertisements in their sig, and just post random gibberish all around? It's happened once already. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Make it so that they can only put URLs in there sig after 20 posts. Does 20 posts sound fair? The 1 URL limite befor 20 posts sounds lkiek a good idea to me. Quote Link to comment Share on other sites More sharing options...
cooper Posted July 2, 2006 Share Posted July 2, 2006 I would suggest that rather than outright banning, posts that match the set criteria should be sent to a moderator for approval. There can be legitimate reasons to want to post URLs in your first post and that not being allowed is incredibly non-transparant. The criteria you set will then be a way to reduce the flood of posts that would otherwise require mod approval, so as not to overload them with stuff that's probably harmless. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 I was hoping to achive an automated validation system. Paticulaly since this forum has a lack of modoration. Quote Link to comment Share on other sites More sharing options...
stingwray Posted July 2, 2006 Share Posted July 2, 2006 Could you have it sort posts with a high proportion of links compared to the amount of text that they have. Most spam I have seen has little if any plain text. So maybe limiting you to one URL per 150 words? Just an idea. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Nice idea, not sure how easy it would be to impliment though... phpBB is very big and complicated... I still havn't worked out how to fix the blank notification page. I have how ever worked out to block signitures that contain URLs when the user has less then 20 posts. Quote Link to comment Share on other sites More sharing options...
CaveMan Posted July 2, 2006 Share Posted July 2, 2006 ohh 8D how can i exploit the system to ban peoples accounts randomly :D Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 ohh 8D how can i exploit the system to ban peoples accounts randomly :D What? Edit: Yay 1K posts, catching you up VaKo :D Quote Link to comment Share on other sites More sharing options...
cooper Posted July 2, 2006 Share Posted July 2, 2006 Let me just repeat my objection that banning someone for posting too many links is an awfully heavy sanction for what may very well be a legitimate action. If there are insufficient mods on this forum, appoint more of them. I for one wouldn't mind being one. Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 2, 2006 Author Share Posted July 2, 2006 Let me just repeat my objection that banning someone for posting too many links is an awfully heavy sanction for what may very well be a legitimate action.If there are insufficient mods on this forum, appoint more of them. I for one wouldn't mind being one. But you don't have the post count :P Yes, perhaps banning poeple becasue they posted URls is a bit extrem... perhaps I will just leave it at egnoring the post. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.