Jump to content

Shoppingcart allows one letter domains


erwin123

Recommended Posts

How can I make sure that the whois/shoppingcart only allows a search for domains with at least three letters?

People now enter a domain with one letter and the whois shows it as available and allows it to be ordered...

it is possible to order 1-letter domains - though they're usual ccTLDs (e.g .be, .cc, .je etc)... but in general, the minimum length is 2 or 3.

 

you can add additional domain length settings via the configuration.php file.

 

http://docs.whmcs.com/Domains_Configuration#Customising_Domain_Name_Length_Restrictions

 

The major TLDs have length limits included by default and you can specify your own for any others by adding lines such as these to the WHMCS configuration.php file:

$DomainMinLengthRestrictions[".asia"] = 3;
$DomainMaxLengthRestrictions[".asia"] = 64;
$DomainMinLengthRestrictions[".ws"] = 4;
$DomainMaxLengthRestrictions[".ws"] = 63;

though whether it works often depends on which WHMCS version you're using... i've quickly tested with v7.2b, so I assume will work with v7+

Link to comment
Share on other sites

Dear Brian,

 

Thank you.

That is the main configuration.php file in the root of the installation with the database pw etc?

There's no mention at all in this configurationfile.

 

Can I just add it on the bottom?

 

thanks,

Erwin

 

- - - Updated - - -

 

Dear Brian,

 

I've tried this but it does not seem to have any effect.

I'm using v7.1.2

 

Thanks

Link to comment
Share on other sites

Hi Erwin,

 

Thank you.

That is the main configuration.php file in the root of the installation with the database pw etc?

There's no mention at all in this configuration file.

Can I just add it on the bottom?

yes to both - as long as they're in there somewhere, and formatted correctly, then it'll be fine. :idea:

 

there are lots of potential changes that you can make to the configuration.php file that aren't added/mentioned by default - Smarty security policy, timezones, specific TLD settings etc... I think WHMCS don't put them in there by default to avoid causing confusion to customers. :)

 

I've tried this but it does not seem to have any effect.

I'm using v7.1.2

it seems to work fine for v7.1.2 - though it's giving an incorrect error message, "Domains must begin with a letter or a number", but it's preventing 1 & 2 letter domains...

 

what TLDs are you trying to do this with? in the above 2 devs, i'm only trying with .actor and .xyz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated