RE: [PHP] Don't search for domains on Network Solutions...
| From: | Andrés Robinet | Date: | Wed, 16 Jan 2008 19:32:57 +0000 |
| Subject: | RE: [PHP] Don't search for domains on Network Solutions... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267422@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Eric Butera [mailto:eric.butera@gmail.com]
> Sent: Wednesday, January 16, 2008 2:57 PM
> To: php php
> Subject: [PHP] Don't search for domains on Network Solutions...
>
> ... otherwise this will happen:
>
> erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php
> Starting at 01/16/2008 12:36pm.Result:
> ...snip...
> Your Domain Name Search Results
> Congratulations! The following domains are available
> eric-butera-for-php-general
>
>
> Then a few minutes later:
> erics:~ eric$ whois eric-butera-for-php-general.com
> ...snip...
>
> Domain Name: ERIC-BUTERA-FOR-PHP-GENERAL.COM
> Registrar: NETWORK SOLUTIONS, LLC.
> Whois Server: whois.networksolutions.com
> Referral URL: http://www.networksolutions.com
> Name Server: NS1.RESERVEDDOMAINNAME.COM
> Name Server: NS2.RESERVEDDOMAINNAME.COM
> Status: clientHold
> Updated Date: 16-jan-2008
> Creation Date: 16-jan-2008
> Expiration Date: 16-jan-2009
>
>
>
> networksolutions.php:
> <?php
> printf("Starting at %s.", date('m/d/Y h:ia'));
> $url =
> 'http://www.networksolutions.com/domainSearch.do';
>
> $values = array(
> 'domainNames' => 'eric-butera-for-php-general',
> 'method-submit.x' => '',
> 'method-submit.y' => '',
> 'Search' =>
> '/domain-name-registration/domain-name-search-results.jsp',
> 'allowBulk' => 'false',
> 'currentPage' => '/home.jsp?layoutIdIndex=0',
> 'formTargetPage' => '/domain-name-registration/index.jsp'
> );
>
> // semi-borrowed from Ojas Ojasvi php.net/curl because my vanilla post
> was rejected
> $header[] = "Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
> in;q=0.8,image/png,*/*;q=0.5";
> $header[] = "Cache-Control: max-age=0";
> $header[] = "Connection: keep-alive";
> $header[] = "Keep-Alive: 300";
> $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
> $header[] = "Accept-Language: en-us,en;q=0.5";
> $header[] = "Pragma: ";
>
> $c = curl_init();
> curl_setopt($c, CURLOPT_HTTPHEADER, $header);
> curl_setopt($c, CURLOPT_REFERER,
> 'http://www.networksolutions.com');
> curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; U; PPC Mac
> OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11');
> curl_setopt($c, CURLOPT_POST, true);
> curl_setopt($c, CURLOPT_POSTFIELDS, $values);
> curl_setopt($c, CURLOPT_URL, $url);
> curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
>
> echo "Result:\n";
> echo curl_exec($c);
>
A couple of days ago I've come across this:
http://www.seomoz.org/blog/network-solutions-exploits-icanns-fiveday-refund-
rule-to-hoard-domains
So... I don't even think that network solutions is the only one doing it. I
know this is not strictly related to PHP, but I thought it would be a good
idea to throw the warning. I think this is I-CANN's fault.
Regards,
Rob
Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695
Email: info@bestplace.net | MSN Chat: best@bestplace.net | SKYPE:
bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com