Random data submission in Message form

2 views
Skip to first unread message

Mrugesh Panchal

unread,
Feb 17, 2010, 12:12:58 AM2/17/10
to PHP :: Be a part of it
Dear Friends,

Today i have seen that sombody has insert random data through random
ip address in my project website contact form. And i am giving you as
example like this kind of data has been inserted. Any body knows how
to prevent it.
What kind of function should i have to used to strips this kind of
data?

e.g.

30 foktbbxpue foktbbxpue xXMcyj spybtqoemcej, [url=http://
ebhpgwjpqevr.com/]ebhpgwjpqevr[/url], [link=http://pcqv
mix...@ckzzlj.com xXMcyj spybtqoemcej, [url=http://
ebhpgwjpqevr.com/]ebhpgwjpqevr[/url], [link=http://
pcqvmsbtklja.com/]pcqvmsbtklja[/link], http://mnnisnevgtor.com/
204.110.115.52 13-02-2010

kalpesh mahida

unread,
Feb 17, 2010, 12:35:16 AM2/17/10
to php-be-a-...@googlegroups.com
Hi Mrugesh,

This might be a computer generated comments are posted to your website usually known as "spam bots", and there are various techniqes available to to check whether the poster is human or a computer like 1) Captcha and 2) Some alternate of Captcha etc. out of these Captcha is more popular and used frequently now a days to protect website from spamming.

The second thing you notice about the posts are that they all are from different IPs - and its possible to acquire different IP for a sigle machine for different post so they might come from one single machine.

I advise to make use of Captcha or filter information that are come from outside of programme before inserting or displaying them back to your website there are some function that take care about filtering user input like htmlspecialchars(), strip_tags() etc...

Hope this will help you to recover from the problem

Kalpesh Mahida

Mrugesh Panchal

unread,
Feb 17, 2010, 12:45:47 AM2/17/10
to PHP :: Be a part of it
The spam is coming from different IP address. So, i cannot able to
restrict it.
But your CAPTCHA suggestion is good. I will implement it.

But I think there is only one alternative CAPTCHA. Or other good
solutions is there.
I want to restrict spam in any case. I found some more information
that there are third party
services that restrict spams also.

And i am listing here that modules which restrict spam also.
http://drupal.org/project/mollom
http://drupal.org/project/spam --> Is this spam module satisfy our
requirement.

I dont know please reply...

Thank you once again. KM.

On Feb 17, 10:35 am, kalpesh mahida <kalpesh.mah...@gmail.com> wrote:
> Hi Mrugesh,
>
> This might be a computer generated comments are posted to your website

> usually known as "*spam bots*", and there are various techniqes available to


> to check whether the poster is human or a computer like 1) Captcha and 2)
> Some alternate of Captcha etc. out of these Captcha is more popular and used
> frequently now a days to protect website from spamming.
>
> The second thing you notice about the posts are that they all are from
> different IPs - and its possible to acquire different IP for a sigle machine
> for different post so they might come from one single machine.
>
> I advise to make use of Captcha or filter information that are come from
> outside of programme before inserting or displaying them back to your
> website there are some function that take care about filtering user input
> like htmlspecialchars(), strip_tags() etc...
>
> Hope this will help you to recover from the problem
>
> Kalpesh Mahida
>

> On Wed, Feb 17, 2010 at 10:42 AM, Mrugesh Panchal <panchal.mrug...@gmail.com

chirag

unread,
Feb 17, 2010, 12:51:33 AM2/17/10
to PHP :: Be a part of it
hi Mrugesh,

you can find the details of the CAPTCHA from the links below:

overview: http://en.wikipedia.org/wiki/CAPTCHA

official captcha site: http://www.captcha.net/

http://recaptcha.net/captcha.html

Also if you are using drupal, there is a drupal module for CAPTCHA
also . please see the link below for drupal module:

http://drupal.org/project/captcha

In case of any problem implementing it, u can ask freely.....

Chirag

On Feb 17, 10:45 am, Mrugesh Panchal <panchal.mrug...@gmail.com>
wrote:


> The spam is coming from different IP address. So, i cannot able to
> restrict it.
> But your CAPTCHA suggestion is good. I will implement it.
>
> But I think there is only one alternative CAPTCHA. Or other good
> solutions is there.
> I want to restrict spam in any case. I found some more information
> that there are third party
> services that restrict spams also.
>

> And i am listing here that modules which restrict spam also.http://drupal.org/project/mollomhttp://drupal.org/project/spam --> Is this spam module satisfy our

kalpesh mahida

unread,
Feb 17, 2010, 12:55:52 AM2/17/10
to php-be-a-...@googlegroups.com
Yes mrugesh if you are using drupal then the spam module you found and what chirag has suggested are good options to protect spams.

Kalpesh Mahida

--
You received this message because you are subscribed to the Google
Groups "PHP :: Be a part of it" group.
To post to this group, send email to
php-be-a-...@googlegroups.com
To unsubscribe from this group, send email to
php-be-a-part-o...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/php-be-a-part-of-it?hl=en?hl=en

Mrugesh Panchal

unread,
Feb 17, 2010, 12:59:58 AM2/17/10
to PHP :: Be a part of it
Yes thank you very much both of you Kalpesh & Chirag,

I am going to implement the CAPTCHA in my case. If any kind of help i
need.
Than i will ask you.

Thanks again for your wonderful reply.

On Feb 17, 10:55 am, kalpesh mahida <kalpesh.mah...@gmail.com> wrote:
> Yes mrugesh if you are using drupal then the spam module you found and what
> chirag has suggested are good options to protect spams.
>
> Kalpesh Mahida
>

> On Wed, Feb 17, 2010 at 11:21 AM, chirag <chiragchou...@gmail.com> wrote:
> > hi Mrugesh,
>
> > you can find the details of the CAPTCHA from the links below:
>
> > overview:  http://en.wikipedia.org/wiki/CAPTCHA
>
> > official captcha site:  http://www.captcha.net/
>
> >http://recaptcha.net/captcha.html
>
> > Also if you are using drupal, there is a drupal module for CAPTCHA
> > also . please see the link below for drupal module:
>
> >http://drupal.org/project/captcha
>
> > In case of any problem implementing it, u can ask freely.....
>
> > Chirag
>
> > On Feb 17, 10:45 am, Mrugesh Panchal <panchal.mrug...@gmail.com>
> > wrote:
> > > The spam is coming from different IP address. So, i cannot able to
> > > restrict it.
> > > But your CAPTCHA suggestion is good. I will implement it.
>
> > > But I think there is only one alternative CAPTCHA. Or other good
> > > solutions is there.
> > > I want to restrict spam in any case. I found some more information
> > > that there are third party
> > > services that restrict spams also.
>
> > > And i am listing here that modules which restrict spam also.

> >http://drupal.org/project/mollomhttp://drupal.org/project/spam--> Is this

> > php-be-a-part-o...@googlegroups.com<php-be-a-part-of-it%2Bunsu...@googlegroups.com>

Mrugesh Panchal

unread,
Feb 17, 2010, 5:02:05 AM2/17/10
to PHP :: Be a part of it
Friends captcha implementation successfully done on this url :
http://www.janderijk.com/message/36/0

with drupal ready made captcha module.

Thank you very much for your tremendous support.

Thanks,
Panchal Mrugesh.

On Feb 17, 10:59 am, Mrugesh Panchal <panchal.mrug...@gmail.com>

Reply all
Reply to author
Forward
0 new messages