| core_net

# Class: Bs_IntruderBuster Source Location: /core/net/http/Bs_IntruderBuster.class.php
### Class Overview
    Bs_Object
       |
       --Bs_IntruderBuster
Bs_IntruderBuster class #### Author(s): Andrej Arn <at blueshoes dot org> #### Version: 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:42 $ #### Copyright: blueshoes.org | ### Methods Bs_IntruderBuster crashBrowserByJsBug generateRandomEmails generateRandomUrls getBadMailAddresses send403forbidden
### Inherited Variables | ### Inherited Methods #### Class: Bs_Object Bs_Object::Bs_Object() Bs_Object::getErrors() Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack. Bs_Object::getLastError() Basic error handling: Get last error string from the global Bs_Error-error stack. Bs_Object::getLastErrors() Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors(). Bs_Object::persist() Persists this object by serializing it and saving it to a file with unique name. Bs_Object::setError() Basic error handling: Push an error string on the global Bs_Error-error stack. Bs_Object::toHtml() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::toString() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::unpersist() Fetches an object that was persisted with persist()
### Class Details [line 30] Bs_IntruderBuster class this class is used to deal with unwanted visitors to our page, namely all email spiders web spiders that don't respect our robots.txt policy viruses users use the Bs_Browscap class to detect such guests. dependencies: none #### Tags:
pattern: | singleton: (pseudostatic)
since: | bs 4.1
access: | public
version: | 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:42 $
copyright: | blueshoes.org
author: | Andrej Arn <at blueshoes dot org>
[ Top ] ### Class Methods ### constructor Bs_IntruderBuster [line 37]
`Bs_IntruderBuster Bs_IntruderBuster( )`
Constructor. [ Top ] ### method crashBrowserByJsBug [line 267]
`string crashBrowserByJsBug( )`
returns a html page that is using javascript which crashes ie 3.02 ie 5.01 ie 5.5 ie 6.0 (tested, even with sp2) this one works in ie6, and apparently in many earlier versions too: <form><input type crash></form> #### Tags:
return: | (the html code for a complete page.)
access: | public
[ Top ] ### method generateRandomEmails [line 186]
`string generateRandomEmails( [int $num = 50])`
generates html code with $num numbers of links to email addresses. #### Tags:
return: | (html code)
access: | public
#### Parameters:
int | $num | (default is 50)
[ Top ] ### method generateRandomUrls [line 210]
`string generateRandomUrls( [int $num = 50])`
generates html code with $num numbers of links to html pages. #### Tags:
return: | (html code)
access: | public
#### Parameters:
int | $num | (default is 50)
[ Top ] ### method getBadMailAddresses [line 68]
`string getBadMailAddresses( )`
returns a list of mailto-linked email addresses as html code. use this function to deal with an email spider. #### Tags:
return: | (email list as html output)
access: | public
[ Top ] ### method send403forbidden [line 55]
`void send403forbidden( )`
sends a 403 Forbidden response to the client, telling that he's not allowed to view that page. can be used for any unwanted visitor, and is prolly the best one to choose even if it's not as fancy as others below. it may result in less further problems with that user. (if you kill his browser, he may get angry, ...) note: dis function terminates the script execution. #### Tags:
access: | public
[ Top ] Documentation generated on Mon, 29 Dec 2003 21:11:22 +0100 by phpDocumentor 1.2.3