Hi all,

Not sure which category to put this in. I have just downloaded the CAPTCHA module, and installed it only to find that it only asks a math question and doesn't provide a skewed image for security. I have read the modules development notes and found that the math option is now the default. That's fine, but where do you get the image_inc file? I would like images for the registration process and not math problems.

It says in one post that the image option is included but its not. A strange question I know but I'm new to this, maybe I've just missed something. I'm using the 4.7.0 release.

Any ideas would be much appreciated!

Thanks

dux0r

Comments

calebgilbert’s picture

the math question option (I use the other one), but you need the textimage module for captcha to work, too.

But of course both of those modules are not working very well right now as evidenced by the 'current issues' section for each module. (a better working captcha/textimage is one of the last remain things on my to 'needed list', natch)

All of that said - one can figure out how to get a mostly working captcha system working on 4.7.x.

Political Physics

dux0r’s picture

Thanks for the reply,

I knew I'd missed something, I'd been working on the site for hours, it was late and I was tired and I forgot to read the part where it says, you need the textimage module for the image captcha to work.

You solved my problem and now it works just fine! Not that it matters that much at the moment, because I can't get sendmail and the confirmation emails working hahah!

But kudos to you!

dux0r

kylehase’s picture

I'm also having problems with the images. If I don't use my own fonts, some letters get cut off. To resolve this I simply use my own fonts. If I don't use my own background, there is only slight distortion and one straight line through the image (not very difficult for OCR). If I use my own background, even a flat white one, I am able to add much distortion and lines but the text is covered by as solid colored blocks.

Any suggestions?

gybanez’s picture

where do you get your own fonts and what directory is it installed? I'm sorry if this is a n00b question.
any help would be appreciated. thanks.

vorbian’s picture

To fix your problem with the letters being cut off, try the code fix suggested at this post:
http://drupal.org/node/71265

ohthehugemanatee’s picture

I have a multisite installation of Drupal 5. Everything is great on all the other sites, but in setting up a new site I've found that CAPTCHA isn't working! The challenge is presented, but if I use a custom font, all the letters appear as dark green blocks. If I use a custom background, the whole challenge is blocked out by one big black block.

I would normally think that this was a GD problem, but CAPTCHA works great on all the other sites on this installation. On the problem site, I've tried disabling and re-enabling captcha and textimage, and removing and re-setting the "access textimages" access item... to no avail.

Suggestions?

You never REALLY learn to swear until you own a computer.

Grinin’s picture

I installed the captcha and text image module, though I have the same problem as listed above regarding the math problems working but not the text image. Do I have to create the http://www.url.com/_textimage/image/1163489445 directory and make it writable by the webserver?

I'd love to see this work... its easier than explaining to people that they have to do some simple math to ask me a question on the contact form :D especially if they get frustrated by the wrong answer...... :/

I.T. Consultant by day... Drupal developer all the time.
http://chrisllorca.com

Grinin’s picture

Nevermind... I know now the problem, but I'm not sure exactly how I can fix it.

After creating the directories _textimage and images, it still didn't load the image.... so I checked the log files and noticed it read: _textimage/image/1163489880 denied access. So, I enabled the captchas for authenticated users and noticed that it did load the images... so I think it has something to do with the way that I have drupal configured to hide files from the users.

Any suggestions or ideas would be great... Im keeping my fingers crossed that captchas will come built into version 5

Thanks everyone,
Chris

edit: Found the access necessary to view the captchas under access control..... Now it all works... though I feel the position of the captcha should be above the submit button... but its 3 am so im going to bed now.

I.T. Consultant by day... Drupal developer all the time.
http://chrisllorca.com

imabird’s picture

THANK YOU!!!!!!!!!! I was getting the same problem. Drupal registration wasn't showing the image I read your comment about ACCESS CONTROL for Captcha... Almost as frustrating as the stupid bots logging on as new users. I already changed it to require manual verification (by me) after they did the email, plus added a few TOS questions. That wasn't stopping all the new users with funky names. Latest batch have 'registrator' at the beginning of their email address. As usual, IP's are all different.
(I'm still running 4.6x)

Barry

imabird’s picture

Not sure why my reply went twice.

Well, although I appreciate the captcha function, it isn't helping me. I'm wondering if the bots get started with a human manually logging them on as I just had a new one today, JFVACcEcvC , (the last ones were registrator something), but it's the same type of name handle. Last one was CvauZZodre . It's easy enough to delete them, however, I don't know if this was a Drupal 4.6.x issue, but when I delete a few, I usually get a mysql error in which the anonymous user gets wiped out. I read about an issue with that on here, and was grateful to see a 'manual' fix for it (inserting it back in). I've held off on upgrading my older 4.6.x package due to what would be involved and what would get lost (my personal modifications, and everything else). I'm usually one of the 1st people to upgrade software, but not with this CMS package and non-standard upgrades (from what I'm used to).
ANYWAY, these people are verifying themselves, with the email-back function, but they still have to wait to get verified (manually) by me. I'll just have to continue letting the user list build up with jerk bots.

heine’s picture

Captcha 4.6 is vulnerable to SA-2007-006: Response validation bypass, which allows both bots and humans to easily bypass the CAPTCHA validation. Because it is so old, it is not supported by the security team.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

kent007’s picture

I too have been working on adding captcha to my 5.1 Drupal site. I was able to add the math function but no image captcha. I read every post and tried every option I could think of. I installed everything according to the instructions but no worky...

I decided to look elsewhere for an add on 'contact' java script and finally got one to work that has captcha built in.

The installation was pretty straightforward but I was getting some conflicts with the link to javascript that was required somewhere in the html body of the page with the contact popup.

I first tried to add the call to the script directly in the page template file right before the </body> tag but this caused some conflicts with editing pages and the java used for the expandable menus.

I found that if I created a separate 'Contact Us' page from the primary links I could simply add the <script type="text/javascript" src="http://www.....js"></script> line directly to it without making the script available 'site-wide'and messing with the edit page java.

Sure, I had to pay $7.00 for this contact script but now it's working and I have captcha and I don't have to worry about it anymore. On to other things...

See the 'Contact Us' link at http://www.clickbankaccountpro.com

Kent

P.S. I have yet to figure out how to simply call this script directly from the primary link without having to go to a separate page. I will work on that as it would be one less step for my visitors.

mbsmetal’s picture