Contacts

Monitoring the date of extension of the domain name. Monitoring Datty Datty Date Date Date GOS REG HTML

If the extension of the registration service of Domains.RU, .rf I.SU is not paid until the deadline for its operation, the provision of the service is suspended (delegation of the domain is removed) on the day specified in the PAID-TILL field in the WHOIS service. If the planned disconnection date falls on a weekend or a holiday, the domain is shutdown to the first working day after the weekend.

After suspending domain delegation, all HTTP requests to the domain are redirected to a service page with information on temporary failure to provide services. Refuse redirecting administrators of Domains.ru, I.rf administrators before the expiration of the domain name register, sending an application randomly to the address.

Within 30 days after the expiration of the service (during the period of preferential extension) at the Domain.ru administrator ,.rf or.su retains the ability to pay for its extension.

In the case of payment, the provision of services is resumed.

Removal of domains.ru, .su, .rf from the registry for non-payment

If the extension of domain registration is not paid within 30 days after its completion (during the period of preferential extension), the registration is canceled (the domain is released).

Published in the Free-Date field of the domain information after the deadline for registration.

RU-CENTER can delete domain.su at any time since the planned release date (Free-Date). If this did not happen, the domains automatically deletes the technical center.

During the period of preferential extension, the registration of registration of Domainov.ru I.RF is not produced.

Domain Removal Date TECHNICAL CENTER

Domains.ru, .rf I.SU are removed by the technical center per day corresponding to the planned removal date (Free-Date).

Domains.ru, .rf or.su will be removed on the second working day after the weekend, if the removal date falls on the day off or day next to the output.

The procedure for removing domains in the technical center begins to work:

  • for domains.ru, .rf at 17:00 (MSK),
  • for domains.su at 19:30 (MSK).

Registration through RU-CENTER Domains.Ru, .su, .rf to be released

Applications for the registration of the domain frees from the registry can be submitted on the WWW server. Site / Auction / to the liberation of the domain from the registry.

For Domains.ru I.Rf Applications begin to be taken 30 days before the day of the liberation of the domain from the registry according to the registration service of the liberated domain in the RU domains and the Russian Federation.

For domains.su - at any time before the liberation of the domain from the registry according to the registration service of the liberated domain in the domains SU, COM.RU, NET.RU, Org.ru, pp.ru and geodoma.

For domains.ru, .su, .rf - on the day of deleting a domain from the registry via the web interface on the page, while:

  • a letter to the actions are sent to the contact addresses of the person who made the application.

2. International and foreign

If the extension of the service is not paid before its expiration of its operation, the service is suspended (delegation of the domain is removed) the day after the date specified in the Expiration Date field. If the planned disconnection date falls on a weekend or a holiday, a deactivation of the domain is transferred to the second working day after the weekend.

Within 30 days after the expiration of the service, the domain administrator retains the ability to pay for its extension. In the case of payment, the provision of services is resumed.

Removal of domains from registries in international and foreign national domains

If the extension of domain registration is not paid within 30 days from the end of the service life, RU-CENTER initiates the domain removal procedure in the registry. If the removal date is on the weekend or festive day, the beginning of the domain removal procedure is transferred to the second working day after the weekend.

The domain removal procedure in the registry lasts 35 days. The exception is:

  • domains.hn, the removal procedure lasts 15 days, and the domain during this period cannot be restored nor extended;
  • domains.name, which are deleted after 30 days after the end of the registration period.
  • domains.kz, which are removed after 20 days after the end of registration.

At the same time, the registry for 30 days establishes the corresponding status to the domain:
.Net, .com, .cc, .tv, .ag, .bz, .lc, .mn, .sc, .vc - RedemPtionPeriod,
.Biz .tel - Pending Delete,
.Info, .org, .me, .mobi, .aero, .travel, .xxx, .pro - PendingDelete Restorable.

The date of the beginning of the thirty-day period is indicated in the field:
Updated Date for domains.net, .com, .cc, .tv, .ag, .bz, .hn, .lc, .mn, .sc, .vc
Domain Last Updated Date - Biz, .tel or
Last Updated on - info, .org, .me, .mobi, .aero, .travel, .xxx, .pro.

Domain recovery

Within 25 days from the moment the domain removal procedure, the domain can be restored and extended (except. HN, NAME, .KZ) at the request of the domain administrator.

If the domain has not been restored and extended, it will be deleted from the registry 5 days after the end of the RedemPtionPeriod (Pending Delete or PendingDelete Restorable). During these 5 days (the domain status in the registry is PendingDelete) to recover, extend or register a domain is impossible.

After deleting a domain from the domain registry can be registered by any person.

3. Domains of the 3rd level

Removing the delegation of the domain for non-payment

If the extension of the service is not paid until the deadline for its operation, the provision of the service is suspended (the domain delegation is removed) the day after the date specified in the PAID-TILL field in the WHOIS service. For domains.net.ru, .org.ru I.pp.ru The provision of services is suspended (delegation of the domain is removed) per day specified in the PAID-TILL field in the WHOIS service.

If the planned disconnection date falls on a weekend or a holiday, a deactivation of the domain is transferred to the second working day after the weekend.

After suspending domain delegation All HTTP requests to domains.net.ru, .org.ru I.pp.Ru is redirected to the service website of the administrator of Domains.Net.Ru, .org.ru I.pp.ru, Ano "CVX MSC-IX, with information about the reason for termination of delegation.

Within 30 days after the expiration date of the service (period of preferential extension), the domain administrator retains the ability to pay for its extension. In the case of payment, the provision of services is resumed.

During the period of preferential extension, the registration of registration of domains.net.ru ,.org.ru I.pp.ru is not produced.

If payment for the extension of the service is produced on the last working day of the preferential extension period, then the RU-CENTER is not responsible for successful extension.

Domain removal

Registration of the third level domain name is canceled (the domain is released), if it is not extended within 30 (thirty) calendar days from the date of expiry date of the domain name.

Planned Domain Liberation Date Published in the Free-Date field in the domain information in the WHOIS service RU-CENTER after the deadline for registration. At the same time, the removal is made on one day later later than the planned date of release, if the day of deletion (Free-Date + 1) does not fall on a non-working day or day, following non-working (otherwise, removal is made on the second working day after the weekend).

Domains.Net.Ru, .org.ru I.pp.ru are removed by the technical center per day corresponding to the planned removal date (Free-Date). Domains.Net.Ru, .org.ru I.pp.ru will be removed on the second working day after the weekend, if the removal date falls on the day off or the day next to the output.

Registration through RU-CENTER freed 3 level domains

Applications for the registration of freedom liberated from registry or domains.com.ru can be submitted on the WWW server. Site / Auction / at any time before the liberation of domains from the registry according to the service "Registration of the liberated domain in domains.su, .com.ru and geodomenas."

On the day of deleting a domain, an application for the domain registration service is accepted through the web interface on the page, while:

  • the application is satisfied if the domain is free at the time of its processing, it turns out to be free;
  • the actions of the actions are sent to the contact email addresses of the person who made the application.

Good day Friends! Let's look at the registration of users on PHP. To begin with, let's determine the conditions for our user registration:

  • Password encrypt with algorithm MD5
  • Password will "saline"
  • Login employment check
  • Activate user letter.
  • Recording and storage of data in DBMS MYSQL.

To write this script, we need to understand what user is registered. Registration of a user is to obtain a real user data, processing and data storage.

If you explain with simple words, check-in is just a record and storage of certain data on which we can authorize the user in our case - this is a login and password.

Authorization - providing a certain person or group of persons rights to perform certain actions, as well as the process of verifying these rights while trying to fulfill these actions. Similarly, using authorization, we can distinguish access to one or another content on our website.

Consider the structure of scripts catalogs to implement our registration with authorization. We need to break the scripts on logical components. Registration and authorization modules We possess a separate directory. Also in separate directories, we will place a database connection Mysql, file with user functions, style file CSS. And our template HTML. This structure allows you to quickly navigate the scripts. Imagine that you have a big site with a bunch of modules, etc. And if there is no order, it will be very difficult to find something in such a mess.

Since we will store all data in DBMS MYSQL., let's create a not big table in which we will store registration data.

First you need to create a table in the database. Table name bez_reg. Where bez. - this is a table prefix, and rEG Table name.

Table Structure: bez_reg.

- - The structure of the `bez_reg table` - Create Table if not exists` bez_reg` (id` Int (11) Not Null Auto_Increment, `Login` , `Salt` Varchar (32) Not Null,` Active_Hex` Varchar (32) Not NULL, `Status` Int (1) Not Null, Primary Key (` ID`)) Engine \u003d Myisam Default Charset \u003d UTF8 AUTO_INCREMENT \u003d 1;

Now create basic scripts for further work.

File index.php.

File config.php.

"); ?>

File 404.html

Error 404

Error 404

The page occurred 404

Return


File bd.php.

File index.html

Registering PHP MySQL users with writing activation



File Funct.php.

"." \\ n "; if (IS_Array ($ DATA)) (Foreach ($ Data AS $ Val) $ err. \u003d"

  • . "$ Val."
  • "." \\ n ";) ELSE $ err. \u003d"
  • "$ Data."
  • "." \\ n "; $ err. \u003d""." \\ n "; Return $ err;) / ** Simple wrapper for queries to mysql * @param string $ sql * / function mysqlquery ($ SQL) ($ res \u003d mysql_query Shows a real request sent to MySQL, as well as an error. Convenient when debugging. * / if (! $ Res) ($ message \u003d "Invalid query:". mysql_error (). "\\ n"; $ message. \u003d "Completely : ". $ SQL; DIE ($ message);) Return $ Res;) / ** Simple salt generator * @Param String $ SQL * / FUNCTION SALT () ($ SALT \u003d SUBSTR (MD5 (Uniqid ()), - 8); Return $ Salt;)

    Let's start writing registration. To begin with, we will need to make a registration form template so that the user can make his data for processing. Next, we will need to write a form handler itself, which will check for the correctness of the user data entered. After the data is successfully verified by write them to our database and send a letter to the user to activate its account.

    File reg.php.

    You have successfully registered! Please activate your account !!"; // We produce an activation of an IF account (ISSET ($ _ Get [" Key "])) (// Check the $ SQL key \u003d" Select * from `". Bez_dbprefix. "REG` WHERE `Active_Str". "Escape_str ( $ _Get ["Key"]). "" "; $ Res \u003d mysqlquery ($ SQL); if (mysql_num_rows ($ res) \u003d\u003d 0) $ err \u003d" Activation key is not true! "; // Check the presence of errors and We display if the user (Count ($ ERR)\u003e 0) ECHO SHOWERRORMESSAGE ($ ERR); ELSE (// We get the address of the user $ row \u003d mysql_fetch_assoc ($ res); $ email \u003d $ row ["login"]; // activate the account User $ SQL \u003d "Update` ". bez_dbprefix." REG` set `status` \u003d 1 Where` login` \u003d "". $ email. "" "$ res \u003d mysqlquery ($ SQL); // Send a letter to activate $ title \u003d "(! Lang: Your account on http: // Site successfully activated"; $message = "Поздравляю Вас, Ваш аккаунт на http://сайт успешно активирован"; sendMessageMail($email, BEZ_MAIL_AUTOR, $title, $message); /*Перенаправляем пользователя на нужную нам страницу*/ header("Location:". BEZ_HOST ."less/reg/?mode=reg&active=ok"); exit; } } /*Если нажата кнопка на регистрацию, начинаем проверку*/ if(isset($_POST["submit"])) { //Утюжим пришедшие данные if(empty($_POST["email"])) $err = "Поле Email не может быть пустым!"; else { if(!preg_match("/^!} [Email Protected](+ \\.) + (2.6) $ / i ", $ _post [" email "])) $ err \u003d" e-mail "not correctly entered." \\ N ";) if (empty ($ _ post [ "Pass"])) $ err \u003d "The password field cannot be empty"; if (empty ($ _ post ["Pass2])) $ err \u003d" Password confirmation field cannot be empty "; // Check the presence of errors and We display an IF user (Count ($ ERR)\u003e 0) ECHO SHOWERRORMESSAGE ($ ERR); ELSE (/ * We continue to check the entered data check for passwords: / if ($ _ post ["Pass"]! \u003d $ _Post ["Pass2" ]) $ err \u003d "Passwords do not argue"; // Check the presence of errors and display the user if (Count ($ ERR)\u003e 0) ECHO SHOWERRORMESSAGE ($ ERR); ELSE (/ * Checking if we have such a user in the database * / $ SQL \u003d "Select` Login` From `". bez_dbprefix. "REG` WHERE `login` \u003d" ". Escape_str ($ _ post [" email "])." "" $ res \u003d mysqlquery ($ SQL); if (mysql_num_rows ($ RES)\u003e 0) $ err \u003d "Unfortunately login: . "$ _Post [" email "]." Busy! "; // Check the presence of errors and display the user if (Count ($ ERR)\u003e 0) ECHO SHOWERRORMESSAGE ($ ERR); ELSE (// Get High Salt $ SALT \u003d SALT (); // Solim Password $ pass \u003d MD5 (MD5 ($ _ POST ["PASS"]). $ SALT); / * If everything is good, write data to the database * / $ sql \u003d "Insert Into` ". bez_dbprefix." REG` Values \u200b\u200b("", "" . Escape_str ($ _ POST ["Email"]). "", "". $ pass. "", "". $ Salt. "", "". MD5 ($ SALT). "", 0) "; $ res \u003d mysqlquery ($ SQL); // Send a letter to activate $ URL \u003d bez_host. "LESS / REG /? MODE \u003d REG & KEY \u003d". MD5 ($ SALT); $ title \u003d "(! lang: Registration at http: / /website"; $message = "Для активации Вашего акаунта пройдите по ссылке ". $url .""; sendMessageMail($_POST["email"], BEZ_MAIL_AUTOR, $title, $message); //Сбрасываем параметры header("Location:". BEZ_HOST ."less/reg/?mode=reg&status=ok"); exit; } } } } ?>!}

    File reg_form.html

    Registering PHP MySQL users with writing activation

    E-mail *:
    Password *:
    Password confirmation *:

    Fields with icon * Mandatory for filling

    Since the registration of users is ready for us, it's time to write authorization. Create a form for user authorization, then write the handler of the authorization form and last the script show.php. Which will show us authorized in the system or not.

    File auth.php.

    0) ECHO SHOWERRORMESSAGE ($ ERR); ELSE (/ * Create a request to select from the database to check the usernation of the user * / $ SQL \u003d "SELECT * from` ". bez_dbprefix." REG `WHERE` Login` \u003d "". Escape_str ($ _ post ["email"]) . "" "And` Status` \u003d 1 "; $ res \u003d mysqlquery ($ sql); // If the login arches, check the password if (mysql_num_rows ($ res)\u003e 0) (// Get data from the $ ROW table \u003d mysql_fetch_assoc ( $ Res); if (MD5 (MD5 ($ _ POST ["PASS"]). $ Row ["Salt"]) \u003d\u003d $ ROW ["PASS"]) ($ _session ["User"] \u003d true; // Reset the HEADER parameters ("Location:". Bez_Host. "LESS / REG /? MODE \u003d AUTH"); EXIT;) ELSE ECHO SHOWERRORMESSAGE ("Invalid Password!");) Else Echo ShowerRormessage ("Login . "$ _Post [" email "]." not found! ");))?\u003e

    For those who have the latest PHP version by posting this script using Pdo Because expansion Mysql It is outdated and deleted from the new version of PHP. Download registration and authorization PHP MySQL PDO

    Archive updated 24.02.2015g.

    Attention: If you use this script on the local type server Denwer, Xampp., you should not wait for letters on your mailbox. Letters lie in the plug sendmail. IN Denwer You can find them on the way. Z: \\ TMP \\! Sendmail \\ Open these files you can in any email client.

    Monitoring the date of extension of the domain name is an action that cannot be underestimated. I already wrote about that, and now let's deal with another frequent problem - an unexpected expiration of the domain name registration period. It would seem that all registrars today are reminiscent of this (and usually several times). But the problem is that these letters are not read, or they somehow fall into spam. In general, not everyone is aware that they have the deadline for registering a domain name. As a result, the site does not work, people do not understand why, and sometimes spend a lot of time to understand what is happening. Meanwhile, the domain name disappears from the DNS cache, and after a couple of days (or even earlier, it depends on different factors) visitors stop entering the site. Let's see how to monitor the expiration date of the domain name. Naturally, a script on Bash.

    How to get a domain name registration date

    The easiest option is to use the global WHOIS database. It contains information about domain names, such as an organization, responsible person, contacts for communication, registration date and date of the registration period. And this is exactly what we need. Let's take some popular domain for example. Let it be yandex.ru. This information is stored in the WHOIS database about this domain:

    $ WHOIS Yandex.ru% by Submitting a Query to Ripn "S WHOIS SERVICE% You AGREE TO ABIDE by The Following Terms of Use:% http://www.ripn.net/about/servpol.html#3.2 (in russian) % http://www.ripn.net/about/en/servpol.html#3.2 (in English). domain: yandex.ru NSERVER: ns1.yandex.ru. 213.180.193.1, 2a02: 6b8 :: 1 NSERVER: ns2.yandex.ru. 93.158.134.1, 2A02: 6B8: 0: 1 :: 1 State: Registered, Delegated, Verified Org: Yandex, LLC. Registrar: RU-CENTER-RU Admin-Contact: https: // www. Nic.ru/whois Created: 1997.09.23 PAID-TILL: 2017.10.01 Free-Date: 2017.11.01 Source: TCI Last Updated ON 2017.01.03 05:46:31 MSK

    The field that interests us is "PAID-TILL", this is the date that we have paid a domain.

    Monitoring the database of the domain name will be made approximately the same as the monitoring of the certificate, but noticeably easier. We receive a domain data, looking for a field containing the registration date if it is present (if the WHOIS data for this domain is not closed), we get this date, receives today and take the difference in days. If you wish, you can add sending a letter if it remains, say, less than 30 days before the end of registration. But not everything is so simple. Because there is at least three types of records about the end of registration. The first looks like this:

    PAID-TILL: 2017.10.01

    The second looks like this:

    Registrar Registration Expiration Date: 2020-09-13T21: 00: 00-0700

    And the third looks like this:

    Registry Expiry Date: 2018-05-11T04: 00: 00Z

    And we, accordingly, it is necessary to provide all three options. Or, if the fourth, then the fourth one will meet. While let's figure it out with these three.

    This is how the script looks like:

    #! / bin / bash # If the parameter is not specified, we display the prompt and complete the operation if ["$ 1" \u003d\u003d "] then Cat<< EOF Script that monitors how many days left until domain registration ends. Usage: $(basename $0) domain.name EOF exit fi # Получаем строку, содержащую дату окончания регистрации PAIDTILL=$(whois $1 | grep "paid-till\|Registrar Registration Expiration Date\|Registry Expiry Date") # Если такая строка не найдена, выходим с ошибкой if [ -z "$PAIDTILL" ] then echo "Registration end date is not available in whois database" exit 1 else # Если дата выглядит как ГГГГ.ММ.ДД, то добавляем 00:00:00 в конец [[ "$PAIDTILL" =~ "paid-till" ]] && PAIDTILL=${PAIDTILL//./-}" 00:00:00" # Удаляем из строки всё до двоеточия, само двоеточие # плюс автоматически будут удалены пробелы PAIDTILL=${PAIDTILL#*:} # Получаем текущую дату CURRENTDATE=$(date "+%Y-%m-%d %H:%M:%S") # Находим разницу между датами, получаем количество оставшихся дней DAYS_LEFT=$((($(date -d "$PAIDTILL" +%s) - $(date -d "$CURRENTDATE" +%s)) / 86400)) # Выводим, сколько дней осталось echo $DAYS_LEFT days left fi

    Here is the result of the work of this script for different domains at the time of writing the article:

    $ ./check-dn-reg.sh.Sh Linux.org 492 Days Left $ ./check-dn-reg.sh Yahoo.com 2206 Days Left $ ./check-dn-ruleg.sh yandex.ru 270 Days Left $. /check-dn-reg.shogo.com 1349 Days Left $ ./check-dn-reg.sh OK.ru 331 Days Left $ ./check-dn-reg.sh vk.com 170 Days Left $ ./check -dn-reg.sh Linux.org 492 Days Left $ ./check-dn-reg.sh linux.org.ru 345 Days Left

    Agree, it looks comfortable. Monitoring the date of extension of the domain name script size is only 660 bytes. You can already be used in monitoring using Nagios or Zabbix.

    If there are additions, comments, write in the comments.



    Did you like the article? Share it