WordPress.org

Plugin Directory

Changeset 3535


Ignore:
Timestamp:
09/22/05 20:36:59 (9 years ago)
Author:
error
Message:

Deny access to attempts with no User-Agent. A few things will break; whitelist them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bad-behavior/trunk/bad-behavior-user-agent.php

    r3452 r3535  
    4747); 
    4848 
     49if (empty($wp_bb_http_user_agent)) { 
     50    wp_bb_spammer("A User-Agent is required but none was provided."); 
     51} 
     52 
    4953foreach ($wp_bb_spambots_str0 as $wp_bb_spambot) { 
    5054    $pos = stripos($wp_bb_http_user_agent, $wp_bb_spambot); 
Note: See TracChangeset for help on using the changeset viewer.