boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

b2comments.post.php

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
Sigg3



Joined: 03 Jul 2003
Posts: 889
Location: Oslo, Norway

PostPosted: Mon Oct 25, 2004 2:01 pm    Post subject: b2comments.post.php Reply with quote

I just had a real hard SPAM attack, probably deliberately to shut down my server, and my host wanted to know why I used POST instead of GET in the b2comments form.

Is it possible to use GET instead?

If things continues, I might just have to take down the entire comment-feature. Would be a real drag...

Edit: Wohoo! 600 post!Smile
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
stevem



Joined: 15 Mar 2003
Posts: 357

PostPosted: Mon Oct 25, 2004 4:57 pm    Post subject: Reply with quote

I can't see any reason why you can't use GET - which is not the same thing as saying it will work Smile .

Looking at it very quickly you'll have to change the method in the forms in b2comments.php/b2commentspopup.php from post to get, then change HTTP_POST to HTTP_GET in b2comments.post.php. Maybe other files need changing as well but you could try these first and see what happens.
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 889
Location: Oslo, Norway

PostPosted: Mon Oct 25, 2004 10:39 pm    Post subject: Reply with quote

Thanks. I will probably try it out..

..when my host decides I'm capable of running my own site again. Geez!
This is undoubtedly a pushed-beyond-limit SPAM attack or a DoS. The IPs (all with the same xxx.xxx.xxx numbers the last ones ranging from 4-12) were all tunneled through anonymous-tools.

Last time I checked the IP the spammer was from Spain, also different IPs, but the same company. It would most probably turn out that they just offered free proxies, so there's no point in investigating further.

Right now the page is all 403 Forbidden, and my host has taken down everything... Maybe a good excuse to start doing something with that new design I've been thinking about for half a year..
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Guest






PostPosted: Wed Oct 27, 2004 11:08 am    Post subject: Reply with quote

Ok...

I changed every HTTP_POST to HTTP_GET (except for the get magic quotes definitions) and it works to post comments. But (in Firefox at least) the form just sends then nothing happens (for the poster). This means he has to hit F5 after posting...

anywho, I thought this could be relevant to the $location = function (in comments.post.php) and reverted these two back to HTTP_POST, but it didn't work..

Any thoughts?
Back to top
Sigg3



Joined: 03 Jul 2003
Posts: 889
Location: Oslo, Norway

PostPosted: Wed Oct 27, 2004 11:11 am    Post subject: Reply with quote

Ok. The refresh-problem seemed to be an issue with Firefox...

Any ideas on how to solve this??

I'm installing blacklist now:)
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
stevem



Joined: 15 Mar 2003
Posts: 357

PostPosted: Wed Oct 27, 2004 2:19 pm    Post subject: Reply with quote

I wonder if you could use an old trick which fools the browser by letting it think it is seeing a new page. You just append ?a=1 to the URL (or any other letters/numbers). To do that in this case, in b2commentspopup.php you change
Code:
<form action="b2comments.post.php" method="get">
to
Code:
<form action="b2comments.post.php<?php echo '?a='.rand(1,100) ; ?>" method="get">

and in b2comments.php you change
Code:
<form action="<?php echo $siteurl; ?>/b2comments.post.php" method="get">
to
Code:
<form action="<?php echo $siteurl; ?>/b2comments.post.php<?php echo '?a='.rand(1,100) ; ?" method="get">>"

This puts ?a= a random number between 1 and 100 in the URL - always putting a=1 might cause the same problem.

Not tested it though so may be errors or just not work!
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 889
Location: Oslo, Norway

PostPosted: Thu Oct 28, 2004 8:44 am    Post subject: Reply with quote

I'll check it out.

No big problem, though. Most people use IE. Unfortunately:p

GET FIREFOX!!
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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