I have a large database of links that are sorted differently and tied to other information, which is valuable (for some people).
Currently, my setup (which seems to work) just calls a php file like link.php? id = 123, it registers the request with a timestamp in the database. Before he spits out the link, he checks how many requests have been made from this IP in the last 5 minutes. If its value is greater than x, it redirects you to the captcha page.
Everything works fine and dandy, but the site becomes very popular (and also receives DDOed for about 6 weeks), so php gets the floor, so Im trying to minimize the time that I have to put php to do something. I wanted to show links in plain text instead of link.php? Id = and have an onclick function to just add 1 to your view account. I still press php, but at least if it lags, it does it in the background and the user can immediately see the link they requested.
The problem is what makes the site REALLY inappropriate. Is there anything I can do to prevent this, but still not rely on php to check before spitting out the link?
php screen-scraping
user15063
source share