Jump to content
  • 0

Domain Checker


evolvewh

Question

Is there code that I can put on a web page (not in the client only area) that allows a customer to search for a new domain name and then purchase it if they want?  The site would be running in the root folder and Blesta in a folder from there so the domain name checker would need to go on www.website.com/domains.php and the blesta is located at www.website.com/blesta

 

Hopefully it's possible.

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

I tried doing this for you but I failed LOL. I hope the guys can help you out and tell me where I went wrong.

 

I edited: config/blesta.php with:

// CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE
Configure::set("Blesta.csrf_bypass", array('client_login::index','domain_form::index'));

That should disable the hash needed).

 

Then this was the code:

 

<html>
<head>
<title>Domains Form.</title>
</head>
<body>
<form action="http://billing.cubicwebs.com/plugin/order/main/preconfig/domains" method="post"> 
Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds">
<option name="tlds[]" value=".com" id="t.com">.com</option>
<option name="tlds[]" value=".org" id="t.org">.org</option>
<option name="tlds[]" value=".net" id="t.net">.net</option>
<option name="tlds[]" value=".in" id="t.in">.in</option>
<option name="tlds[]" value=".co" id="t.co">.co</option>
<option name="tlds[]" value=".biz" id="t.biz">.biz</option>
<option name="tlds[]" value=".info" id="t.info">.info</option>
<option name="tlds[]" value=".us" id="t.us">.us</option>
<option name="tlds[]" value=".name" id="t.name">.name</option>
<option name="tlds[]" value=".co.uk" id="t.co.uk">.co.uk</option>
<option name="tlds[]" value=".tel" id="t.tel">.tel</option>
<option name="tlds[]" value=".mobi" id="t.mobi">.mobi</option>
<option name="tlds[]" value=".eu" id="t.eu">.eu</option>
<option name="tlds[]" value=".asia" id="t.asia">.asia</option>
<option name="tlds[]" value=".me" id="t.me">.me</option>
<option name="tlds[]" value=".tv" id="t.tv">.tv</option>
</select>
<input name="lookup" type="submit" value="Go"> 
</form>
</body>
</hmtl>

http://licensecart.co.uk/domains/

Link to comment
Share on other sites

  • 0

I tried doing this for you but I failed LOL. I hope the guys can help you out and tell me where I went wrong.

 

I edited: config/blesta.php with:

// CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE
Configure::set("Blesta.csrf_bypass", array('client_login::index','domain_form::index'));

That should disable the hash needed).

 

Then this was the code:

 

<html>
<head>
<title>Domains Form.</title>
</head>
<body>
<form action="http://billing.cubicwebs.com/plugin/order/main/preconfig/domains" method="post"> 
Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds">
<option name="tlds[]" value=".com" id="t.com">.com</option>
<option name="tlds[]" value=".org" id="t.org">.org</option>
<option name="tlds[]" value=".net" id="t.net">.net</option>
<option name="tlds[]" value=".in" id="t.in">.in</option>
<option name="tlds[]" value=".co" id="t.co">.co</option>
<option name="tlds[]" value=".biz" id="t.biz">.biz</option>
<option name="tlds[]" value=".info" id="t.info">.info</option>
<option name="tlds[]" value=".us" id="t.us">.us</option>
<option name="tlds[]" value=".name" id="t.name">.name</option>
<option name="tlds[]" value=".co.uk" id="t.co.uk">.co.uk</option>
<option name="tlds[]" value=".tel" id="t.tel">.tel</option>
<option name="tlds[]" value=".mobi" id="t.mobi">.mobi</option>
<option name="tlds[]" value=".eu" id="t.eu">.eu</option>
<option name="tlds[]" value=".asia" id="t.asia">.asia</option>
<option name="tlds[]" value=".me" id="t.me">.me</option>
<option name="tlds[]" value=".tv" id="t.tv">.tv</option>
</select>
<input name="lookup" type="submit" value="Go"> 
</form>
</body>
</hmtl>

http://licensecart.co.uk/domains/

 

I'll have to look into this.  Even if I can make the appearance on the home page and pass the info over to order section, it'll work.  Similar to this look:post-499-0-47047500-1378949952_thumb.png

Link to comment
Share on other sites

  • 0

I tried doing this for you but I failed LOL. I hope the guys can help you out and tell me where I went wrong.

 

I edited: config/blesta.php with:

// CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE
Configure::set("Blesta.csrf_bypass", array('client_login::index','domain_form::index'));

That should disable the hash needed).

 

Then this was the code:

<html>
<head>
<title>Domains Form.</title>
</head>
<body>
<form action="http://billing.cubicwebs.com/plugin/order/main/preconfig/domains" method="post"> 
Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds">
<option name="tlds[]" value=".com" id="t.com">.com</option>
<option name="tlds[]" value=".org" id="t.org">.org</option>
<option name="tlds[]" value=".net" id="t.net">.net</option>
<option name="tlds[]" value=".in" id="t.in">.in</option>
<option name="tlds[]" value=".co" id="t.co">.co</option>
<option name="tlds[]" value=".biz" id="t.biz">.biz</option>
<option name="tlds[]" value=".info" id="t.info">.info</option>
<option name="tlds[]" value=".us" id="t.us">.us</option>
<option name="tlds[]" value=".name" id="t.name">.name</option>
<option name="tlds[]" value=".co.uk" id="t.co.uk">.co.uk</option>
<option name="tlds[]" value=".tel" id="t.tel">.tel</option>
<option name="tlds[]" value=".mobi" id="t.mobi">.mobi</option>
<option name="tlds[]" value=".eu" id="t.eu">.eu</option>
<option name="tlds[]" value=".asia" id="t.asia">.asia</option>
<option name="tlds[]" value=".me" id="t.me">.me</option>
<option name="tlds[]" value=".tv" id="t.tv">.tv</option>
</select>
<input name="lookup" type="submit" value="Go"> 
</form>
</body>
</hmtl>

http://licensecart.co.uk/domains/

 

Hi Mike, All !

 

For anyone interested I think i have this working using what Mike started with.

<select name="tlds"> change to <select name="tlds[]">

This now works but because the hash changes i think after 24hrs then it fails again.

I haven't changed the config.php and just making sure before i do that the hash will be disabled only for the lookup.

 

You were nearly there Mike ! lol

 

Steve

Link to comment
Share on other sites

  • 0

Well using Mikes code in the config.php file didn't disable the CSRF token

but by disabling the line above it worked.

// Enable/disable automatic CSRF token verification
Configure::set("Blesta.verify_csrf_token", false);

But I take it this isn't good practice disabling all csrf tokens.

 

Steve

Link to comment
Share on other sites

  • 0

Hi Mike, All !

 

For anyone interested I think i have this working using what Mike started with.

<select name="tlds"> change to <select name="tlds[]">

This now works but because the hash changes i think after 24hrs then it fails again.

I haven't changed the config.php and just making sure before i do that the hash will be disabled only for the lookup.

 

You were nearly there Mike ! lol

 

Steve

 

Congrats you got it half working mate, the guys will be able to help you more as they know their software :)

Link to comment
Share on other sites

  • 0

Lol.. accidents do happen... but is this still unsolved? I really need it more than ever

 

Yeah it is resolved he found the issue I had:

 

<form action="http://billing.cubicwebs.com/plugin/order/main/preconfig/domains" method="post"> 
Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds[]">
<option name="tlds[]" value=".com" id="t.com">.com</option>
<option name="tlds[]" value=".org" id="t.org">.org</option>
<option name="tlds[]" value=".net" id="t.net">.net</option>
<option name="tlds[]" value=".in" id="t.in">.in</option>
<option name="tlds[]" value=".co" id="t.co">.co</option>
<option name="tlds[]" value=".biz" id="t.biz">.biz</option>
<option name="tlds[]" value=".info" id="t.info">.info</option>
<option name="tlds[]" value=".us" id="t.us">.us</option>
<option name="tlds[]" value=".name" id="t.name">.name</option>
<option name="tlds[]" value=".co.uk" id="t.co.uk">.co.uk</option>
<option name="tlds[]" value=".tel" id="t.tel">.tel</option>
<option name="tlds[]" value=".mobi" id="t.mobi">.mobi</option>
<option name="tlds[]" value=".eu" id="t.eu">.eu</option>
<option name="tlds[]" value=".asia" id="t.asia">.asia</option>
<option name="tlds[]" value=".me" id="t.me">.me</option>
<option name="tlds[]" value=".tv" id="t.tv">.tv</option>
</select>
<input name="lookup" type="submit" value="Go"> 

But you need to edit /config/blesta.php

and change this:

// Enable/disable automatic CSRF token verification
Configure::set("Blesta.verify_csrf_token", false);

Until we can find out what value it is to disable just the domain checker.

Link to comment
Share on other sites

  • 0

 

Yeah it is resolved he found the issue I had:

 

<form action="http://billing.cubicwebs.com/plugin/order/main/preconfig/domains" method="post"> 
Domain: <input type="text" value="" placeholder="yourdomain" size="20"> <select name="tlds[]">
<option name="tlds[]" value=".com" id="t.com">.com</option>
<option name="tlds[]" value=".org" id="t.org">.org</option>
<option name="tlds[]" value=".net" id="t.net">.net</option>
<option name="tlds[]" value=".in" id="t.in">.in</option>
<option name="tlds[]" value=".co" id="t.co">.co</option>
<option name="tlds[]" value=".biz" id="t.biz">.biz</option>
<option name="tlds[]" value=".info" id="t.info">.info</option>
<option name="tlds[]" value=".us" id="t.us">.us</option>
<option name="tlds[]" value=".name" id="t.name">.name</option>
<option name="tlds[]" value=".co.uk" id="t.co.uk">.co.uk</option>
<option name="tlds[]" value=".tel" id="t.tel">.tel</option>
<option name="tlds[]" value=".mobi" id="t.mobi">.mobi</option>
<option name="tlds[]" value=".eu" id="t.eu">.eu</option>
<option name="tlds[]" value=".asia" id="t.asia">.asia</option>
<option name="tlds[]" value=".me" id="t.me">.me</option>
<option name="tlds[]" value=".tv" id="t.tv">.tv</option>
</select>
<input name="lookup" type="submit" value="Go"> 

But you need to edit /config/blesta.php

and change this:

// Enable/disable automatic CSRF token verification
Configure::set("Blesta.verify_csrf_token", false);

Until we can find out what value it is to disable just the domain checker.

 

 I have succeded to set it up. But the value is sent empty.

<div class="span8">
<form action="https://yatosha.com/billing/order/config/preconfig/domains" method="post"> <input type="text"  value="" placeholder="Search for your domain name" style="height:50px; font-size:1.5em; width:95%; "> <checkbox name="tlds[]">
<br><font color="#FFFFFF" size="3">
<input type="checkbox" name="tlds[]" value=".com" id="t.com"> .com  
<input type="checkbox" name="tlds[]" value=".org" id="t.org"> .org  
<input type="checkbox" name="tlds[]" value=".net" id="t.net"> .net  
<input type="checkbox" name="tlds[]" value=".info" id="t.info"> .info  
<input type="checkbox" name="tlds[]" value=".name" id="t.name"> .name  
<input type="checkbox" name="tlds[]" value=".xyz" id="t.xyz"> .xyz  
<input type="checkbox" name="tlds[]" value=".co.uk" id="t.co.uk"> .co.uk  
<input type="checkbox" name="tlds[]" value=".us" id="t.us"> .us   </font>
</div>

<div class="span3"><button class="btn btn-large" input name="lookup" type="submit"  value="Go" style="margin-top:22px;"><i class="icon-search circle"></i> Check availability</button></div>

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
Answer this question...

×   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.

Loading...
×
×
  • Create New...