How much bandwith my PHP script will require?

时间:2017-08-13 13:45:59

标签: php hosting web-hosting bandwidth

I have a PHP page that will be called by a JS Userscript everytime the user refresh our forum thread list page (I'm not the forum's owner). This page will show a JSON object generated from a 4 fields DB, containing blacklisted usernames and messages, because the forum is getting flooded by some bots and forum developpers have no idea how to fix their website vulnerabilites.

The userscript may be used by 900-1000 users, maybe up 200 at a time.

And I have another PHP script that has to be executed every minute to access 5 most recent threads, and for each message of the thread, search through the forum to check if the message has already been post.

So for 5 topics * 8 messages (in average) every 60 sec I use :

file_get_contents('http://forum.com/q?"MESSAGE"&type=searchbymessage')

If the same message has already been posted by the same user more than 3 times on 3 different threads within 5 minutes, the script adds his username to the DB in order to blacklist him.

Initially I wanted to use a free domain name and the free webhosting service 000webhost, but I wonder if the bandwith will be enough to handle that? And if 100 users call the first PHP page with the JSON object within a minute, it will imply to connect to the DB 100 times within a minute... Should I go for an paid hosting service or a VPS? Which ones would be the less expensive for my needs? Should I use a flat txt as a DB?

According to 000webhost, the website could handle up to 400 rpm and 10 000 mb monthly bandwith 000webhost limits

0 个答案:

没有答案