stop-spammers-classic/modules/chkaccept.php
2025-09-13 16:55:35 -06:00

17 lines
No EOL
330 B
PHP

<?php
if ( !defined( 'ABSPATH' ) ) {
status_header( 404 );
exit;
}
class chkaccept {
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
if ( array_key_exists( 'HTTP_ACCEPT', $_SERVER ) ) {
return false;
} // real browsers send HTTP_ACCEPT
return 'No Accept Header: ';
}
}
?>