I’m using the cool-captcha for my registration form.
This is the Captcha generated picture code which I’m using inside my codes:
<img src="captcha.php" id="captcha" />
Anyone can directly go to “captcha.php” page and view the image. So my question is, is there anyway to disable the direct access or direct viewing of Captcha.php in browser ? I just want the Captcha.php can only be used to view inside the img source not in direct viewing by browsers. Is there anyway to do in php or htaccess file ?
Thanks
You could of course use
.htaccessin the same manner as in preventing hotlinking of images