Jump to content
Sign in to follow this  
Druide

NEW: Anti Robot Registration Validation

Recommended Posts

I`m wondering if u have sid issues?

 

Try this

 

in admin -> images -> Image Required set it to true


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Just wanted to take a moment to thank you for an excellent contrib. Installed perfectly and works great.

 

Boom

Share this post


Link to post
Share on other sites
I`m wondering if u have sid issues?

 

Try this

 

in admin -> images -> Image Required set it to true

 

 

It was set to true for the screenshot. I also have a multiple image contribution installed as well, I feel like that probably wouldn't effect it but should probably mention just incase

Share this post


Link to post
Share on other sites

you can try adding

 

if (PHP_VERSION >= 4.1) $HTTP_GET_VARS =& $_GET;

 

at the start of validation_png.php

 

and check for sid isseus http://forums.oscommerce.com/index.php?sho...c=330479&hl


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
you can try adding

 

if (PHP_VERSION >= 4.1) $HTTP_GET_VARS =& $_GET;

 

at the start of validation_png.php

 

and check for sid isseus http://forums.oscommerce.com/index.php?sho...c=330479&hl

 

 

I added that piece of code and also forced cookie usage so that the SID can't get lost and now i get this error:

 

Error, unable to read session id

Share this post


Link to post
Share on other sites

you get it at what point & how does it appear, there are a number of checks.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

I don't know if i know exactly how to answer your question =/ but here it goes. I started getting that error right after I enabled 'force cookie use' and it appears when I load any of the pages with validation image on it. The page looks exactly like the image I had posted earlier, but with the error to the left of the image.

 

J

Share this post


Link to post
Share on other sites

so u do have some sid problems, are u using a template?

 

have u checked if u are linking correctly.

 

what versions does your server have?


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

We are not using a template. I'm not sure which links I would have to check, but assuming that the stock oscommerce uses the appropriate links listed in your osCid post, then I am pretty sure we haven't made any adjustments to that.

 

As for versions, here's the list because I am not sure which ones you would need:

 

MySQL client version: 5.0.51a

MySQL Server version: 5.0.54-log

PHP Version 5.2.8

System- Windows NT WEBE50 5.2 build 3790

 

Are there certain pages where I should check for linking? I'll try to check the ones in the catalog folder to see if there are any mistakes for now.

 

Thanks,

 

J

 

PS: forgot to mention that I have followed most of your instructions on this post as well:

http://forums.oscommerce.com/index.php?s=&...t&p=1299417

in order to make the site more secure. Not sure if any permissions or anything would effect it.

Edited by therealjblizzle

Share this post


Link to post
Share on other sites

OK I`m wondering if there are issues with the GD library on your server &/or related to windows (I have not tested on any windows based servers)

 

Some have reported that when run localy on there pc this would fail, but once uploaded to a Apache server all was fine

 

Try turning off all filters, also as there seems to be trouble with your cookies turn them back off too


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Turned off filters and cookies and still no image =( no more error message with reading the session id, however, so it looks like the image posted before.

 

J

Share this post


Link to post
Share on other sites

Then I would put it down to GD library on your server &/or windows

 

try on on Apache server if u can


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Not sure if this would help at all, but here is the information about our GD Library:

 

GD Support enabled

GD Version bundled (2.0.34 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.1.9

T1Lib Support enabled

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

 

Also I can try to talk to our host about the problems, but the site it is on is owned by another business I am working for, so I don't think they would be too keen on switching hosts =/

 

J

Share this post


Link to post
Share on other sites

Just moved to a new hosting provider and Anti Robot Reg v2.5 stopped generating images. A SID is generated but no image is associated with it. I tried re-running the SQL script for v2.5 (also updating to a newer version) but I get this message:

 

Error

SQL query:

 

INSERT INTO configuration_group( configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible )

VALUES (

 

'736', 'Anti Robot Reg', 'Anti Robot Registration', 300, 1

);

 

 

 

MySQL said:

 

#1062 - Duplicate entry '736' for key 'PRIMARY'

 

 

 

any help/suggestions/advice will be appreciated!

Share this post


Link to post
Share on other sites

Awesome contribution works like slick. The only question I have is what is this links_submit.php file for?

Share this post


Link to post
Share on other sites

Something came up and I'm hoping there is someone who knows how I can fix this, I've looked back over the 30 some pages of posts for this contribution and can't find the answer. The contribution uses symbols( @ + ) as well as alpha numeric which I would wager from a security stand point is good, but from a maximizing customer stand point it isn't so hot. So what I am trying to accomplish is limit the characters that are used for generating the sequence to just alpha numeric 0-9 a-z .

 

Thanks all in advance for any insights you may have.

Share this post


Link to post
Share on other sites
The positioning will vary with different fonts, I use 5 as patrick has detailed

 

I quite like the way the characters are sometimes just off, its rare that its difficult to distinguish.

 

The character set is done in the function in account_validation.php

 

find:

 

$chars = array('a','b','c','d','e','f','g','h','j','k','l','m','n','p','q','r','s','t','u','v','w','x','y','z', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' @ ', '#', '?', '+', '=');

and set as you wish

I must have missed this the first time through, Sam you rock.. such a wealth of knowledge.

 

Also for anyone else who is wondering about the links_submit it appears to be part of some other contribution, please correct me if I'm wrong.

Edited by Eirik

Share this post


Link to post
Share on other sites

links_submit.php is part of this, its callerd from the links page, there i even a page view in the package.

 

why do u think its not!!! :blink:


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Sorry, mixing up packages there, its the page from link manager II with the capcha added


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

No you were right as well there was something about it in the manual, you had me second guessing myself and I just saw about 2 seconds ago it says optional if you have links manager installed. :)

Edited by Eirik

Share this post


Link to post
Share on other sites

Hi, i got a problem with this module.

It wont generate a picture at all. Im almost 100% sure that i've installed it correct. I did update all the php codes, ran the The MYSQL query and uploaded the arial font.

 

link: http://pcdeler.net/create_account.php

 

I have PHP 5.2.9 and Apache/2.2.11

 

GD Support enabled

GD Version bundled (2.0.34 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.2.1

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XPM Support enabled

XBM Support enabled

 

All help is much appreciated.

 

Regards

Morten

Edited by Mortenjan

Share this post


Link to post
Share on other sites

Looking at your source it appears to be OK

 

What type of server do you have, windows or linux


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Should be OK with that, double check you have installed everything, including functions.

 

Try turning off all filters.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

that didn't help.

I've double checked all files, and gone over the settings.. Tried a handful of combinations.

 

Do you got any other suggestions?

 

Thanks again for the help.

 

Regards Morten

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×