{"id":1353,"date":"2023-02-16T12:05:29","date_gmt":"2023-02-16T12:05:29","guid":{"rendered":"https:\/\/www.tools.keywordfinder.us\/?page_id=1353"},"modified":"2023-02-16T12:05:29","modified_gmt":"2023-02-16T12:05:29","slug":"safe-url-checker","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/hi\/safe-url-checker\/","title":{"rendered":"Safe URL Checker"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-base-3-background-color has-background is-layout-flow wp-block-column-is-layout-flow\">\n<section><h1>Safe URL Checker<\/h1><br>\n    <div>\n      <label for=\"url\"><b>Enter URL<\/b><\/label><br>\n      <input type=\"text\" id=\"url\">\n    <\/div><br>\n    <button id=\"checkBtn\">Check<\/button><br>\n    <div id=\"result\"><\/div><br><br>\n<\/section>\n    <script>\n      \/\/ Get the input URL element and the check button\n      var urlInput = document.getElementById(\"url\");\n      var checkBtn = document.getElementById(\"checkBtn\");\n      \n      \/\/ Add an event listener for when the check button is clicked\n      checkBtn.addEventListener(\"click\", function() {\n        \/\/ Get the entered URL\n        var url = urlInput.value;\n        \n        \/\/ Regular expression to match a safe URL\n        var safeUrlRegex = \/^(https?:\\\/\\\/)?(www\\.)?[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\\/.*)?$\/;\n        \n        \/\/ Check if the URL is safe\n        if (url.match(safeUrlRegex)) {\n          \/\/ URL is safe\n          var result = document.getElementById(\"result\");\n          result.innerHTML = \"URL is safe!\";\n        } else {\n          \/\/ URL is not safe\n          var result = document.getElementById(\"result\");\n          result.innerHTML = \"URL is not safe!\";\n        }\n      });\n    <\/script>\n \n\n<style>\nsection{\n         margin-top:60px;\n        width: 100%;\n        max-width: 970px;\n        background-color: #fff;\n        border: 1px solid #ddd;\n        padding: 25px;\n      }\ninput[type=\"text\"]{width:60%}\n<\/style>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Safe URL Checker Enter URL Check<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-1353","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/hi\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages\/1353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/comments?post=1353"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/pages\/1353\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/hi\/wp-json\/wp\/v2\/media?parent=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}