Block spam harvesters
כ"ח תשרי תשס"ז - October 19, 2006On my site, I have a few "special" pages who's only purpose is to ban bots that ignore robots.txt (or worse, use it as a hint for where "the good stuff" is!). Here's how I do that:
(more...)
On my site, I have a few "special" pages who's only purpose is to ban bots that ignore robots.txt (or worse, use it as a hint for where "the good stuff" is!). Here's how I do that:
(more...)
I've been collecting nifty tricks and useful factoids about C, and I think I'll start posting them here.
Look for the first post sometime on Tuesday, with 3-4 posts weekly after that!
Most PHP tasks are designed to be run concurrently, that is, several instances of the same task can run simultaneously. For example, my home page should be displayed to all viewers, even if they're trying to access it at the same time.
Other tasks, however, should only be run one at a time. For instance, an update (cron) task should probably refuse to run (or wait) if it sees another task running. Here's how to implement that.
(more...)
I just redid the bread crumbs code on my site to handle breadcrumbs without horribly mangling links containing slashes the query string. Details below.
(more...)