Placing time restrictions on IP of users
Posted: Mon Nov 21, 2011 2:57 pm
A part of my program runs a query on the database to fetch mobile numbers of matched users.
The user then reviews the list of mobile numbers.
If he then selects some member from the list and clicks the Send button, the code sends a certain SMS message to all the listed mobile numbers.
So far so good.
Now, I cannot leave this page as an empty playground for (mis)users.
As a workaround, i am planning to allow just one 'send' option per IP address per hour.
I have seen similar functions on rapidshare and other similar download sites where hourly IP download limits are placed for non-premium users.
But i think they use Javascript.
My questions:
1. How do i achieve this in PHP ? (Just give me pointers or links to resources from where i could catch up)
2. More so, Is there any other way(other than IP restriction) to keep bad boys at bay in this situation ?
I googled this, not very satisfactory results though.
thanks and this is my 15th post - so no more captchas now
The user then reviews the list of mobile numbers.
If he then selects some member from the list and clicks the Send button, the code sends a certain SMS message to all the listed mobile numbers.
So far so good.
Now, I cannot leave this page as an empty playground for (mis)users.
As a workaround, i am planning to allow just one 'send' option per IP address per hour.
I have seen similar functions on rapidshare and other similar download sites where hourly IP download limits are placed for non-premium users.
But i think they use Javascript.
My questions:
1. How do i achieve this in PHP ? (Just give me pointers or links to resources from where i could catch up)
2. More so, Is there any other way(other than IP restriction) to keep bad boys at bay in this situation ?
I googled this, not very satisfactory results though.
thanks and this is my 15th post - so no more captchas now