ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
<!--Main Content-->\r\n<div id=\"primary\">\r\n<div class=\"container px-0\">\r\n<div class=\"d-lg-flex\" id=\"main-content\">\r\n<div class=\"col-lg-8 px-3\" id=\"main\">\r\n<div class=\"pt-4 pb-5 section\" id=\"blog-post\"><div class=\"widget Blog\" data-version=\"2\" id=\"Blog1\">\r\n<article class=\"mb-5\" id=\"page-content\">\r\n<header class=\"entry-header\">\r\n</header>\r\n<div class=\"entry-text text-break mb-5\">\r\n<div class=\"at_robottxt_container\"><h1>Generate robots.txt</h1>\r\n<label class=\"at_level\">Website URL:</label>\r\n<input class=\"at_input\" id=\"website-url\" placeholder=\"Enter Your Website URL like ‘https://techedubyte.com’\" type=\"text\" /><br />\r\n<label>Platform:</label>\r\n<select id=\"platform-select\">\r\n <option value=\"blogger\">Blogger</option>\r\n <option value=\"wordpress\">WordPress</option>\r\n</select><br />\r\n<button id=\"generate-btn\">Generate</button><br /><br />\r\n<div id=\"output-container\" style=\"display: none;\">\r\n <p id=\"output-text\"></p>\r\n <button id=\"copy-btn\" style=\"display: none;\">Copy to clipboard</button>\r\n </div></div>\r\n<style>\r\n \r\n\r\n.at_robottxt_container h1 {\r\n text-align: center;\r\n margin: 50px 0;\r\n font-size: 36px;\r\n color: #333;\r\n}\r\n\r\n.at_robottxt_container {\r\n background-color: #fff;\r\n border-radius: 5px;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\r\n padding: 20px;\r\n margin: 0 auto;text-align: center;\r\n max-width:100%;\r\n}\r\n\r\n.at_robottxt_container label {\r\n display: block;\r\n margin-bottom: 10px;\r\n font-size: 16px;\r\n color: #333;\r\n}\r\n\r\n.at_robottxt_container input[type=\"text\"] {\r\n display: block;\r\n width: 100%;\r\n padding: 10px;max-width: 80%;\r\n margin: auto;\r\n margin-bottom: 20px;\r\n font-size: 16px;\r\n border: none;\r\n border-radius: 5px;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\r\n background-color: #f1f1f1;\r\n color: #333;\r\n}\r\n\r\n.at_robottxt_container select {\r\n display: block;\r\n width: 100%;max-width: 80%;\r\n margin: auto;\r\n padding: 10px;\r\n margin-bottom: 20px;\r\n font-size: 16px;\r\n border: none;\r\n border-radius: 5px;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\r\n background-color: #f1f1f1;\r\n color: #333;\r\n}\r\n\r\n.at_robottxt_container button {\r\n display: block;\r\n margin: 0 auto;\r\n padding: 10px 20px;\r\n font-size: 16px;\r\n border: none;\r\n border-radius: 5px;\r\n background-color: #428bca;\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.at_robottxt_container textarea {\r\n display: none;\r\n width: 100%;\r\n padding: 10px;\r\n margin-bottom: 20px;\r\n font-size: 16px;\r\n border: none;text-align: left;\r\n border-radius: 5px;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\r\n background-color: #f1f1f1;\r\n color: #333;\r\n resize: none;\r\n}\r\np#output-text {\r\n text-align: left;\r\n background: beige;\r\n padding: 20px;\r\n}\r\n.at_robottxt_container button#copy-btn {\r\n display: none;\r\n margin: 0 auto;\r\n padding: 10px 20px;\r\n font-size: 16px;\r\n border: none;\r\n border-radius: 5px;\r\n background-color: #5cb85c;\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.at_robottxt_container button#copy-btn:hover {\r\n background-color: #449d44;\r\n}\r\n\r\n.at_robottxt_container button:focus,\r\n.at_robottxt_container button:hover,\r\n.at_robottxt_container button:active {\r\n background-color: #3071a9;\r\n}\r\n\r\n@media screen and (max-width: 500px) {\r\n .at_robottxt_container {\r\n margin: 0 10px;\r\n }\r\n}\r\n\r\n\r\n</style>\r\n\r\n <script>\r\n const generateBtn = document.getElementById(\"generate-btn\");\r\n const outputContainer = document.getElementById(\"output-container\");\r\n const outputText = document.getElementById(\"output-text\");\r\n const copyBtn = document.getElementById(\"copy-btn\");\r\n\r\n generateBtn.addEventListener(\"click\", () => {\r\n const websiteUrl = document.getElementById(\"website-url\").value;\r\n const platform = document.getElementById(\"platform-select\").value;\r\n\r\n // Generate the robots.txt content based on the selected platform\r\n let robotsTxtContent = \"\";\r\n if (platform === \"blogger\") {\r\n robotsTxtContent = `User-agent: *\r\nDisallow: /search\r\nDisallow: /p/\r\nDisallow: /?m=1\r\nSitemap: ${websiteUrl}/atom.xml?redirect=false&start-index=1&max-results=500`;\r\n } else if (platform === \"wordpress\") {\r\n robotsTxtContent = `User-agent: *\r\nDisallow: /wp-admin/\r\nDisallow: /wp-includes/\r\nSitemap: ${websiteUrl}/sitemap.xml`;\r\n }\r\n\r\n // Display the robots.txt content and copy button\r\n outputText.innerText = robotsTxtContent;\r\n outputContainer.style.display = \"block\";\r\n copyBtn.style.display = \"block\";\r\n \r\n // Add typing effect to the output text\r\n const textLength = robotsTxtContent.length;\r\n let i = 0;\r\n const typeEffectInterval = setInterval(() => {\r\n outputText.innerText = robotsTxtContent.slice(0, i);\r\n i++;\r\n if (i > textLength) {\r\n clearInterval(typeEffectInterval);\r\n }\r\n }, 50);\r\n });\r\n\r\n copyBtn.addEventListener(\"click\", () => {\r\n const copyText = document.createElement(\"textarea\");\r\n copyText.value = outputText.innerText;\r\n document.body.appendChild(copyText);\r\n copyText.select();\r\n document.execCommand(\"copy\");\r\n document.body.removeChild(copyText);\r\n alert(\"Copied to clipboard!\");\r\n });\r\n </script></div>
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel