prevent bots to query my database several times

Posted by Alain on Stack Overflow See other posts from Stack Overflow or by Alain
Published on 2010-05-08T01:33:45Z Indexed on 2010/05/08 1:38 UTC
Read the original article Hit count: 406

Filed under:
|
|
|

Hi all, I'm building an application that is a kind of registry. Think about the dictionary: you lookup for a word and it return something if the word is founded. Now, that registry is going to store valuable informations about companies, and some could be tempted to get the complete listing. My application use EJB 3.0 that replies to WS.

So I was thinking about permits a maximum of 10 query per IP address per day. Storing the IP address and a counter on a table that would be empty by a script every night.

Is it a good idea/practice to do so? If yes, how can I get the IP address on the EJB side? Is there a better way to prevent something to get all the data from my database? I've also though about CAPTCHA but I think it's a pain for the user, and sometime, they are difficult to read even for real human.

Hope it's all clear since I'm not english...

Thanks Alain

© Stack Overflow or respective owner

Related posts about bots

Related posts about ejb3