Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 07-13-2006, 04:53 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile an odd thinking to stop spam.

I wonder if this way can work.

my comment page is implemented within the front page. popup the form when click the comment icon

index.php?#addcomment

I'm thinking if we can add a value in the link: index.php?&can_comment=1#addcomment

click to transfer the value to the form
<form method='post' action='index.php?x=save_comment&can_comment=can_c omment' ...>

and then modify the index.php, just before saving the comment
if ($can_comment==1){ save the comment... }
else { go to fail... }

maybe it's odd, can tell me if this works?

thanks.
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #2  
Old 07-13-2006, 06:18 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Its good way but mechanizm is too easy. Grabbing this variable from code wont be hard for BOTs and SPAM will go back after short time of freedom.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #3  
Old 07-13-2006, 08:12 AM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
How about working with sha1? like index.php?x=comment&a=d0be2dc421be4fcd0172e5afceea 3970e2f3d940

Everytime there is a comment posted this sha1 string is being changed in de database, so the next time someone pushes the comment button it gives the new sha1 string.
Reply With Quote
  #4  
Old 07-13-2006, 09:18 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
But there is no problem for BOT to come on site, read its content to find out SHA1 hash and put it into http POST stream for PHP script adding comments on site.
Much better would be to use strange names for variables. It can be some short hash strings based on variable getted from comment poster enviroment (like his IP, host, browser agent string or any other) and mixing key generated once per each Pixelpost intallation which can be changed in everytime by user from admin panel. On script supporting comments after that is quite easy to check validation of it.

At this weekend, if there would be free time, Ill work on template using AJAX to post comments. I want to publicatem complete hack. Main idea for now is quite simple.
On site there are only fields like <input>, <textarea> and there is no <form> tag. Under submit button there is connected JavaScript function. It retrieves
data and translates to new variable names which in next step is handled by AJAX, i.e. with POST method and posted to seperate comments support script.There is next step of data validation almost similar to oryginal one and after getting sure all is fine comment is added to DB, email is send and AJAX gives back data to Pixelpost interface to simulate for user that comment is added (I dont reload and page just append its content with new comments).
Almost similar solution you can watch on my site. If I good remember there isnt only variable names translation.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 07-13-2006, 09:48 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile

ok. give up digging on it.

and waiting yours...
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #6  
Old 07-14-2006, 01:41 AM
jgrayson Offline
pixelpost guru
 
Join Date: Jun 2006
Posts: 125
i used askimet and it was stopping most of the spam but i still had to manually delete the tagged spam in the admin.... but then i read this thread:
http://forum.pixelpost.org/showthread.php?t=4310
made the suggested changes and have not had one single spam since.
Reply With Quote
  #7  
Old 07-14-2006, 02:24 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
without any spam addon, not even a spam came to my site.
I'm waiting for them ;-D
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #8  
Old 07-14-2006, 01:38 PM
jgrayson Offline
pixelpost guru
 
Join Date: Jun 2006
Posts: 125
Quote:
Originally Posted by jdleung
without any spam addon, not even a spam came to my site.
I'm waiting for them ;-D
that's probably because i don't think you listed you blog on photoblogs.org yet. once you list in a directory like that the spam will come.
Reply With Quote
  #9  
Old 07-14-2006, 02:56 PM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile

ok, I'm going to list it later.
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #10  
Old 07-14-2006, 03:11 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
I was listed for long time and for very long didnt get any SPAM. If I would not be a Pixelpost developer it was possible to not get any. As dev I had one interesting and just few not interesting SPAMs. It would be nice if only human can post SPAM on my site ;P
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:56 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs