Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

PHP Spider Trap

Code Wizard, 12-30-2006

This program will read each directory for up to 7 directories deep and automatically link to each .htm && .html file. All you need to do is place the code into an HTML page and give it a KeyWord rich name like free-stuff-here.html and submit it to search engines. Blamo! Every page on your website will get spidered over time.

<?
// ################################################
// PHP Spider Trapper v1.01
// ( Updated 06-05-2001 )
// ################################################
// Copyright 2000 MassTraffic.com
// Unlimted Usage Granted By _Owner_
// You May Use the Program For Free
// Under the CAREWARE liceanse.
// Which states that you may use
// the product for free as long
// as you are happy and take care
// of each other && This Script!!
// Oh, and Leave all Headers and Footers Intact, Thanks!
// ################################################
/*/ DIRECTIONS
// 1) Set your webserver up to allow PHP to be ran inside .html extensions
// (so SE's don't know this is a script!!!)
// or AddType inside a .htaccess for a perticular website or folder
// (AddType application/x-httpd-php3 .html) for PHP3
// (AddType application/x-httpd-php .html) for PHP4
// 2) Then paste the following code between the <body> && </body> tags of a webpage.
// 3) Name the html file something keywork rich like (totally-free-stuff-here.html)
// 4) chmod 0755 <filename.html>
// 5) Then hit the page via your browser.
// ################################################
// Now every page in your website from the directory you installed the script
// down will be linked to. This is good for having search engines
// index (Spider) _ALL_ your pages. I know the code isn't pretty
// but I wrote it for myself && my freehost - I just reciently decieded
// to give it away for FREE :)
//
// Name the HTML page whatever you what, like: free-stuff-here.html etc...
// and your set! Then you may use out mass-se-submitter at >> masstraffic.com <<
// to get your self listed in all the major Search Engines..
//
// NOTE: This script will only go 7 Directories Deep!!
// ##################################################
/*/

$level1 = '';
$base = './';
$basedir = opendir("$base");
while ($file = readdir($basedir)){
if ($file != '.' && $file != '..' && eregi(".htm","$file")){ print("<a href=$file>$file</a><BR>
"); flush(); }
if ($file != '.' && $file != '..' && is_dir("$base/$file") && $file != "_data"){
$level1 = "$base/$file";
$seconddir = opendir("$level1");
while ($folder = readdir($seconddir)){
if ($folder != '.' && $folder != '..' && eregi(".htm","$folder")){ print("<a href=$file/$folder>$file/$folder</a><BR>
"); flush(); }
if ($folder != '.' && $folder != '..' && is_dir("$base/$file/$folder") && $folder != "_data"){
$level2 = "$level1/$folder";
$thirddir = opendir("$level2");
while ($this = readdir($thirddir)){
if ($this != '.' && $this != '..' && eregi(".htm","$this")){ print("<a href=$file/$folder/$this>$file/$folder/$this</a><BR>
"); flush(); }
if ($this != '.' && $this != '..' && is_dir("$base/$file/$folder/$this") && $this != "_data"){
$level3 = "$level2/$this";
$forthdir = opendir("$level3");
while ($that = readdir($forthdir)){
if ($that != '.' && $that != '..' && eregi(".htm","$that")){ print("<a href=$file/$folder/$this/$that>$file/$folder/$this/$that</a><BR>
"); flush(); }
if ($that != '.' && $that != '..' && is_dir("$base/$file/$folder/$this/$that") && $that != "_data"){
$level4 = "$level3/$that";
$fithdir = opendir("$level4");
while ($some = readdir($fithdir)){
if ($some != '.' && $some != '..' && eregi(".htm","$some")){ print("<a href=$file/$folder/$this/$that/$some>$file/$folder/$this/$that/$some</a><BR>
"); flush(); }
if ($some != '.' && $some != '..' && is_dir("$base/$file/$folder/$this/$that/$some") && $some != "_data"){
$level5 = "$level4/$some";
$sixthdir = opendir("$level5");
while ($the = readdir($sixthdir)){
if ($the != '.' && $the != '..' && eregi(".htm","$the")){ print("<a href=$file/$folder/$this/$that/$some/$the>$file/$folder/$this/$that/$some/$the</a><BR>
"); flush(); }
if ($the != '.' && $the != '..' && is_dir("$base/$file/$folder/$this/$that/$some/$the") && $the != "_data"){
$level6 = "$level5/$the";
$seventhdir = opendir("$level6");
while ($it = readdir($seventhdir)){
if ($it != '.' && $it != '..' && eregi(".htm","$it")){ print("<a href=$file/$folder/$this/$that/$some/$the/$it>$file/$folder/$this/$that/$some/$the/$it</a><BR>
"); flush(); }
if ($it != '.' && $it != '..' && is_dir("$base/$file/$folder/$this/$that/$some/$the/$it") && $it != "_data"){
$level7 = "$level6/$it";
$eighthdir = opendir("$level7");
while ($deep = readdir($eighthdir)){
if ($deep1 != '.' && $deep1 != '..' && eregi(".htm","$deep1")){ print("<a href=$file/$folder/$this/$that/$some/$the/$it/$deep1>$file/$folder/$this/$that/$some/$the/$it/$deep1</a><BR>
"); flush(); }
if ($deep1 != '.' && $deep1 != '..' && is_dir("$base/$file/$folder/$this/$that/$some/$the/$it/$deep1") && $deep1 != "_data"){
$level8 = "$level7/$deep1";
}}
}}
}}
}}
}}
}}
}}
}}

// Please Leave This Intact, Thank you! //
print("<BR><BR><BR><BR><BR>Powered By: <a href=http://www.MassTraffic.com>Mass Traffic - Website Traffic Resources.</a>");
?>
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions