Page is a not externally linkable
MichaelBluejay - 6:11 am on Jun 2, 2010 (gmt 0)
You don't have to download the files, you can run a script directly on your server. Here's a Perl script I use (in a password-protected directory).
#!/usr/bin/perl
print "Content-type:text/html\n\n";
$textToFind = "<form";
undef $\;
use File::Find;
find(\&processFiles, "/home/user/example.com/");
sub processFiles {
$filename= "$File::Find::name";
if ($filename =~/\.(html|txt|php|cgi|pl)$/) {
open (FILE, "<$filename");
$file = <FILE>;
close (FILE);
if ($file =~/\Q$textToFind\E/si) { print "$filename<BR>"; last;}
}
}
Just create a file called something like "find.pl", put the above code into it, set the file's permissions to 755 with chmod, and then run it from a web browser (e.g., http://example.com/find.pl).
Google "chmod 755" if you don't know about file permissions.