Gradio Website Checker

Gradio Website Checker

Enter a range of URLs to check:







<script>
	function checkUrls() {
		var startUrl = document.getElementById("start").value;
		var endUrl = document.getElementById("end").value;
		var resultDiv = document.getElementById("result");
		resultDiv.innerHTML = "";

		if (startUrl && endUrl) {
			var startNum = parseInt(startUrl.split(".")[0]);
			var endNum = parseInt(endUrl.split(".")[0]);
			if (startNum < endNum) {
				for (var i = startNum; i <= endNum; i++) {
					var url = i + ".gradio.app";
					var xhr = new XMLHttpRequest();
					xhr.open("HEAD", url, true);
					xhr.onreadystatechange = function() {
						if (this.readyState === this.DONE) {
							var status = this.status;
							if (status === 200) {
								var server = xhr.getResponseHeader("server");
								if (server.includes("stable diffusion")) {
									resultDiv.innerHTML += url + " is accessible and is a stable diffusion website.<br>";
								} else {
									resultDiv.innerHTML += url + " is accessible but is not a stable diffusion website.<br>";
								}
							} else {
								resultDiv.innerHTML += url + " is not accessible.<br>";
							}
						}
					};
					xhr.send();
				}
			} else {
				resultDiv.innerHTML = "End URL must be greater than start URL.";
			}
		} else {
			resultDiv.innerHTML = "Please enter start and end URLs.";
		}
	}
</script>
请写一个html网页能够查找从10000gradioapp到30000gradioapp之间哪个网址可以访问并检测是否为stable diffusion的网站将结果都呈现出来

原文地址: https://www.cveoy.top/t/topic/bC6c 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录