Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1738 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

googlebot posting in my news comments !

Thread title: googlebot posting in my news comments !
Closed Thread    
    Thread tools Search this thread Display Modes  
06-08-2005, 04:37 PM
#1
farm is offline farm
Status: Junior Member
Join date: Apr 2005
Location: Grand Rapids, MI
Expertise:
Software:
 
Posts: 27
iTrader: 0 / 0%
 

farm is on a distinguished road

Send a message via AIM to farm

  Old  googlebot posting in my news comments !

sometimes when people post a comment related to a news post, right after they post there will be one right after theirs thats just blank.

* Dns resolved 66.249.65.33 to crawl-66-249-65-33.googlebot.com

its always that same ip.



here's the website

news.php code
comments.php code

thanks in advance !

06-08-2005, 08:37 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Every time Google indexes (or, in fact anyone visits) the 'comment add' page then it will post a comment. In other words, when anyone visits:
http://www.djfarm.com/comments.php?id=[id-of-comment]&do=add

Your PHP code will need to be fixed to prevent this happening. Hopefully it should be a minor fix which someone can sort out for you very quickly.

06-09-2005, 10:43 AM
#3
plattopus is offline plattopus
Status: Junior Member
Join date: Dec 2004
Location: Melbourne, AU
Expertise:
Software:
 
Posts: 33
iTrader: 0 / 0%
 

plattopus is on a distinguished road

Send a message via MSN to plattopus

  Old

That should only occur if the "submit" link is text, because Googlebot shouldn't be clicking submit buttons.

06-09-2005, 03:33 PM
#4
Koobi is offline Koobi
Koobi's Avatar
Status: Member
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 312
iTrader: 0 / 0%
 

Koobi is on a distinguished road

  Old

HTML Code:
<input type="submit" name="submit" value="Comment" />
Assuming your XHTML looks like the code I posted abovem you are probably checking forum submission with something like this:

PHP Code:
if(isset($_GET['submit'])) 

instead of this:

PHP Code:
if('Comment' === $_GET['submit']) 

06-09-2005, 10:18 PM
#5
Offtopic is offline Offtopic
Status: Member
Join date: May 2005
Location: Florida
Expertise:
Software:
 
Posts: 342
iTrader: 0 / 0%
 

Offtopic is on a distinguished road

Send a message via AIM to Offtopic Send a message via MSN to Offtopic

  Old

Hello,

Thanks also guys that helped me out to.

Regards,
Spencer

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed