Codes

Codes


Options -Indexes

ErrorDocument 400 /errors.php ErrorDocument 403 /errors.php ErrorDocument 404 /errors.php ErrorDocument 405 /errors.php ErrorDocument 408 /errors.php ErrorDocument 500 /errors.php ErrorDocument 502 /errors.php ErrorDocument 504 /errors.php


# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0


# BEGIN GZIP <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> # END GZIP

 

error.php


$status = $_SERVER['REDIRECT_STATUS']; $codes = array( ۴۰۰ => array('400 Bad Request', 'The request cannot be fulfilled due to bad syntax.'), ۴۰۳ => array('403 Forbidden', 'The server has refused to fulfil your request.'), ۴۰۴ => array('404 Not Found', 'The page you requested was not found on this server.'), ۴۰۵ => array('405 Method Not Allowed', 'The method specified in the request is not allowed for the specified resource.'), ۴۰۸ => array('408 Request Timeout', 'Your browser failed to send a request in the time allowed by the server.'), ۵۰۰ => array('500 Internal Server Error', 'The request was unsuccessful due to an unexpected condition encountered by the server.'), ۵۰۲ => array('502 Bad Gateway', 'The server received an invalid response while trying to carry out the request.'), ۵۰۴ => array('504 Gateway Timeout', 'The upstream server failed to send a request in the time allowed by the server.'), ); $title = $codes[$status][0]; $message = $codes[$status][1]; if ($title == false || strlen($status) != 3) { $message = 'Please supply a valid HTTP status code.'; } echo '<h1>Hold up! '.$title.' detected</h1>




http://ipinfodb.com/ip_locator.php?ip=

Report Page