{"id":1522,"date":"2025-07-24T22:47:26","date_gmt":"2025-07-24T22:47:26","guid":{"rendered":"https:\/\/tools.mcstarters.com\/?page_id=1522"},"modified":"2025-08-08T06:12:06","modified_gmt":"2025-08-08T06:12:06","slug":"domain-search","status":"publish","type":"page","link":"https:\/\/mcstarters.com\/tools\/domain-search\/","title":{"rendered":"Domain Search"},"content":{"rendered":"\n<div style=\"height:36px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n   <div class=\"mc-tool-container\">\n    <div class=\"domain-search-tool\">\n        <h1>Claim Free Domain with Hosting.<\/h1>\n        <p class=\"description\">Search for the domain name to launch your website with Hostinger.<\/p>\n        \n        <form id=\"domainSearchForm\">\n            <div class=\"search-container\">\n                <input \n                    type=\"text\" \n                    id=\"domainInput\" \n                    placeholder=\"Enter domain (e.g., mybusiness.com)\" \n                    required\n                >\n                <button type=\"submit\" class=\"search-button\">\n                    <span>Search<\/span>\n                    <span class=\"search-icon\">\n                        <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\">\n                            <path d=\"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z\"\/>\n                        <\/svg>\n                    <\/span>\n                <\/button>\n            <\/div>\n            \n            <div class=\"tld-container\">\n                <span class=\"tld-tag\">.com<\/span>\n                <span class=\"tld-tag\">.net<\/span>\n                <span class=\"tld-tag\">.org<\/span>\n                <span class=\"tld-tag\">.io<\/span>\n                <span class=\"tld-tag\">.shop<\/span>\n            <\/div>\n        <\/form>\n    <\/div>\n<\/div>\n\n<style>\n\n\t\n.mc-tool-container {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    padding: 2rem;\n}\n\t\n\t.domain-search-tool {\n    text-align: center;\n}\n\t\n\/* Search Form *\/\n#domainSearchForm {\n    display: flex;\n    flex-direction: column;\n    gap: 1.5rem;\n}\n\n.search-container {\n    display: flex;\n    position: relative;\n\t width: 100%;\n    text-align: center;\n\tmax-width: 42rem;\n    margin-left: auto;\n    margin-right: auto;\n}\n\n#domainInput {\n    flex: 1;\n    padding: 1rem 1.5rem;\n    border: 1px solid #495057;\n    border-radius: 12px;\n    font-size: 1rem;\n    transition: all 0.3s ease;\n}\n\n#domainInput:focus {\n    outline: none;\n    border-color: #7a7a7a;\n}\n\n.search-button {\n    position: absolute;\n    right: 6px;\n    top: 6px;\n    bottom: 6px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 0.5rem;\n    padding: 0 1.25rem;\n    cursor: pointer;\n}\n\n\n\n.search-icon {\n    display: flex;\n    align-items: center;\n}\n\n\/* TLD Tags *\/\n.tld-container {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: center;\n    gap: 0.75rem;\n    margin-top: 0.5rem;\n}\n\n.tld-tag {\n     background-color: transparent;\n    color: #E9ECEF;\n    border: 1px solid #495057;\n    padding: 2px 10px;\n    border-radius: 8px;\n    cursor: pointer;\n    font-size: 13px;\n    margin-left: 5px;\n    cursor: pointer;\n    transition: all 0.2s ease;\n}\n\n\n\n\/* Responsive Design *\/\n@media (max-width: 640px) {\n\t\n\t.mc-tool-container {\n    padding: 2rem 0px;\n}\n\t\n    .search-container {\n        flex-direction: column;\n    }\n    \n    .search-button {\n        position: relative;\n        right: auto;\n        top: auto;\n        margin-top: 0.75rem;\n        width: 100%;\n        padding: 0.75rem;\n    }\n}\n<\/style>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        const form = document.getElementById('domainSearchForm');\n        const domainInput = document.getElementById('domainInput');\n        const tldTags = document.querySelectorAll('.tld-tag');\n        \n        if (form) {\n            form.addEventListener('submit', function(e) {\n                e.preventDefault();\n                \n                let domain = domainInput.value.trim();\n                \n                if (!domain) {\n                    domainInput.focus();\n                    return;\n                }\n                \n                domain = domain.replace(\/^https?:\\\/\\\/\/i, '');\n                domain = domain.replace(\/^www\\.\/i, '');\n                domain = domain.split('\/')[0];\n                \n                const encodedDomain = encodeURIComponent(domain);\n                \n                window.open(\n                    `https:\/\/www.hostinger.com\/domain-name-results?domain=${encodedDomain}&from=domain-name-search&REFERRALCODE=mudassarshakeel&referral_id=019a00be-8020-71a5-a361-d2e9cf34077b`,\n                    '_blank'\n                );\n            });\n            \n            tldTags.forEach(tag => {\n                tag.addEventListener('click', function() {\n                    const tld = this.textContent;\n                    let currentValue = domainInput.value.trim();\n                    \n                    const lastDotIndex = currentValue.lastIndexOf('.');\n                    if (lastDotIndex !== -1) {\n                        currentValue = currentValue.substring(0, lastDotIndex);\n                    }\n                    \n                    domainInput.value = currentValue + tld;\n                    domainInput.focus();\n                });\n            });\n        }\n    });\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1809,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-1522","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/pages\/1522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/comments?post=1522"}],"version-history":[{"count":2,"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/pages\/1522\/revisions"}],"predecessor-version":[{"id":1686,"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/pages\/1522\/revisions\/1686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/media\/1809"}],"wp:attachment":[{"href":"https:\/\/mcstarters.com\/tools\/wp-json\/wp\/v2\/media?parent=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}