#!/usr/bin/perl ################################################################## # # Get that Robot ! # The script checks for known bad E-mail robots and then creates # fake links and e-mail addresses.(random on every call) # This script uses SSI and should be called from the top of every # single page on your site. Load up robotease.cgi into your cgi # directory chmod to 755 and call it from your pages with # # # # Last modified on Oct 26, 1999 # ################################################################## # Load the enviornment variables read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); # Which Browser? @user_agent = split(/\//,$ENV{'HTTP_USER_AGENT'}); @version = split(/ /, $user_agent[1]); # Now we define the browser agents that should trigger our generator. # Feel free to add more browsers. Browsers without identification will # also be banned. If you don't want that, take out the '' in the @trigger list. . @trigger = ('EmailSiphon','NICErsPRO','ExtractorPro','Crescent Internet ToolPak HTTP OLE Control v.1.0', '','CherryPicker/1.0','CherryPickerSE/1.0','CherryPickerElite/1.0','EmailCollector/1.0', 'EmailWolf 1.00','WebBandit/2.1','WebBandit/3.50','eCatch'); #We have members from all over the world! @tails = (".com",".net",".us",".edu",".nl",".de",".it",".se",".ch", ".uk",".ca",".hr",".ae",".br",".jp",".be",".us",".au",".ie", ".ar",".fi",".mil",".gov",".sg",".es",".mx",".no",".pt", ".dk",".il",".ru",".nz",".th",".pl",".id",".cy",".in",".kw", ".at",".za",".cn",".fr",".is",".ro",".kr",".gr",".co",".ph", ".bo",".hu",".cr",".pe",".cl",".tr",".arpa",".tw",".eg", ".ee",".ge",".ua",".om",".ec",".hk",".ve",".ag",".cz",".ni", ".to",".nu",".sm",".ni",".lt",".yu",".bg",".ba",".do",".qa", ".ck",".mt",".bf",".lu",".su",".bh"); #Check visiting browser against trigger list foreach $trg (@trigger) { if ($user_agent[0] eq $trg) { &adr_gen; } } #If you want to test the script, uncomment the following 3 lines #and call the script with a Netscape or M$ browser. # if ($user_agent[0] eq "Mozilla"){ # &adr_gen; # } print "\n\n"; # generate fake mailto: addresses and links sub adr_gen { srand; # use a random number of addreses and links $numberfakeadds = 1000+int(rand(1000)); $numberfakelinks= 10+int(rand(10)); print "Content-type: text/html\n\n"; print <<"EndHTML"; The Confused Members Mailing List

The Confused Members Mailing List

This mailing list is for the use of the Confused only. Please do not abuse it.

EndHTML if (open(DICT,"/usr/dict/words")) { @words = ; close(DICT); } chomp @words; { print "
Links to other confused mailing lists:\n"; for $i (0..$numberfakelinks) { $text=&getword; $link = "/mailinglists/$text/list.html"; $link =~ s/[\s\n\r]+//g; print "
$text\n"; } print "
\n"; } undef @list; for $i (0..$numberfakeadds) { $user = &getword; $user =~ tr/A-Z/a-z/; $name = $user; substr($name,0,1) =~ tr/a-z/A-Z/; $name = "Nancy $name"; $domain = &getword.&getletter.&getword.&getletter; $domain .= $tails[int(rand($#tails+1))]; $email = "$user\@$domain"; $email =~ tr/A-Z/a-z/; push @list,"
  • $name $email\n"; } $|=1; print " EndHTML # get a random word sub getword { my $word = ""; while (length($word) < 4) { $word = $words[int(rand($#words+1))]; } return $word; } # get a random letter sub getletter { my $list = "abcdefghijklmnopqrstuvwxyz0123456789"; return substr($list,int(rand(length($list))),1); } } Welcome to The-Ocean!
    Home | Welcome | Philosophy | Men of Leisure | Store |

    Search The-Ocean:


    Give to the Red Cross!

    Check out our collage of rememberance
    Random Homer quote:
    #!/usr/bin/perl ############################################################################## # Random Text Version 1.0 # # Copyright 1996 Matt Wright mattw@worldwidemart.com # # Created 7/13/96 Last Modified 7/13/96 # # Scripts Archive at: http://www.worldwidemart.com/scripts/ # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1996 Matthew M. Wright All Rights Reserved. # # # # Random Text may be used and modified free of charge by anyone so long as # # this copyright notice and the comments above remain intact. By using this # # code you agree to indemnify Matthew M. Wright from any liability that # # might arise from it's use. # # # # Selling the code for this program without prior written consent is # # expressly forbidden. In other words, please ask first before you try and # # make money off of my program. # # # # Obtain permission before redistributing this software over the Internet or # # in any other medium. In all cases copyright and header must remain intact # ############################################################################## # Define Variables # # This is the file in which all of your random text phrases are stored. # #$random_file = "/home/swingers/theocean/wip/quote.txt"; $random_file = "./homer/homer"; # The delimiter specifies how each phrase is distinguished from another. For# # instance, the common fortune file (a Unix program) is delimited by a new # # line followed by two % signs on the next line and then a new line. This is# # a pretty good format and you can read more about it in the README file. # #$delimiter = "\n\%\%\n"; $delimiter = "\n\%\n"; # Done # ############################################################################## # Open the file containing phrases and read it in. open(FILE,"$random_file") || &error('open->random_file',$random_file); @FILE = ; close(FILE); # Join these lines from the file into one large string. $phrases = join('',@FILE); # Now split the large string according to the $delimiter. @phrases = split(/$delimiter/,$phrases); # Invoke srand; with a seed of the time and pid. If you are on a machine # which doesn't put the pid into $$ (ie. Macintosh, Win NT, etc...), change # this line to: srand(time ^ 22/7); srand(time ^ $$); # Now pluck our random phrase out of the @phrases array! But wait! This # only returns a number. $phrase = rand(@phrases); # Print out the Content-type header, so the browser knows what's going on. print "Content-type: text/html\n\n"; # Change this number into the text we want to return and print it! print $phrases[$phrase]; # All Done! exit; # Was there an error? If so, let's report that sucker so it can get fixed! sub error { ($error,$file) = @_; print <<"END_ERROR"; Content-type: text/html ERROR: Random File Unopenable

    ERROR: Random File Unopenable

    The random file, as specified in the \$random_file perl variable was unopenable.

    END_ERROR if (-e $random_file) { print "The file was found on your system, so make sure that it is\n"; print "readable by the web server. This means you will need to\n"; print "execute the following command:

    \n";
            print "    chmod 744 $random_file\n";
            print "
    \n"; } else { print "The file was not found on your file system. This means that\n"; print "it has either not been created or the path you have specified\n"; print "in \$trrandom_file is incorrect.\n"; } exit; }
    Looney Tunes
    All your old favorites
    Yosemite Sam | Bugs Bunny | Elmer Fudd | Daffy Duck | Marvin Martian | Other Characters |

    The Simpsons
    My collection of Simpsons sounds
    Homer! | Monty Burns | The rest |


    Movie Sound Pages
    Whole pages dedicated to specific movies.
    Dune | Swingers! | Kelly's Heroes! | Excalibur | Fear and Loathing in Las Vegas |


    Movie Sounds
    Under massive expansion and reconstruction
    Dazed and Confused | 2001 | Star Wars | Terminator | Father Goose | Ace Ventura | Miscellaneous |


    Original Star Trek Sounds!
    Clips from the Original Star Trek Series
    Captain Kirk | Commander Spock | Doctor McCoy | Ensign Checkov | Ensign Sulu | Scotty | Ensign Riley | Khan | Captain Pike | Misc. Characters | Introduction | Music and Sound effects |
    Miscellaneous collections
    My collection of sounds that don't fit anywhere
    Cartoon clips | Sound Effects | Misc. TV, Radio Clips | Other Sound Pages |


    Please Visit our Sponsors!



    Please Contact the webmaster with any questions or problems:
    webmaster@the-ocean.com

    Created by Chris Inman


    Copyright © Chris Inman 1999/2000/2001