Considering that refering URL is one of the easiest things to spoof, using that as your only defense against bots is a losing battle. Without much experience, you can manipulate this stuff directly in PHP.
There are many methods available for frustrating bots. Some are more successful than others. You won't read about the ones that work, because few of us are willing to discuss them.
Good luck!
Alex
|