使用 PHP 或 Javascript 自动将浏览器重定向到多个 IP 地址
我有大量的 IP 地址,需要访问它们来查看它们是否处于活动状态。所以我的计划是一遍又一遍地重定向浏览器,然后只使用后退按钮查看每个页面。最好的方法是什么?
我很可能有一个 IP 地址数组。例如:
array(234.324, 2343.323432, 234.234, 234.4543)
然后我可以使用某种脚本语言来循环并将浏览器重定向到这些。期待看到一些很酷的解决方案。
I have a ton of IP addresses that I need to visit to see if they are active. So my plan is to redirect the browser over and over again and then just use the back button to view each page. What is the best way to do this?
I will most likely have an array of IP addresses. like:
array(234.324, 2343.323432, 234.234, 234.4543)
Then I can use some sort of scripting language to loop through and redirect the browser to these. Looking forward to seeing some cool solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用 cURL
Use cURL
除了 Kovshenin 的回复之外,这是我最近制作的一个工具,可以帮助您。
Further to Kovshenin's reply, here is a tool I made recently that will be able to help you out.
不建议这样做。
如果您有支持 PHP 的服务器,则可以 ping 每个域:
That is not recommended.
If you have a PHP-capable server, you can ping each domain:
对我来说,这些看起来不像 IP 地址,但无论如何。为什么不让代码获取您有兴趣检查的每个页面呢?
Those do not look like ip-addresses to me, but whatever. Why don't you just make your code fetch each of the pages you are interested in checking?