Jump to content

Echo only IP's? Script not working..


akiznin

Recommended Posts

My script I made is not working correctly, its supposed to only echo the IP's it finds on a website but still shows entire site.

 

<?php
$fn = "website.com";
$file = file_get_contents($fn);
$file = preg_replace('/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/','',$file);
echo $file;
?>

Link to comment
https://forums.phpfreaks.com/topic/162874-echo-only-ips-script-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.