Advertisement
nshelper

Untitled

Nov 23rd, 2023
853
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1.     add_filter( 'wp-hide/mod_rewrite_rules', '__mod_rewrite_rules', 10, 2 );
  2.     function __mod_rewrite_rules( $rules, $type )
  3.         {
  4.             if  ( $type !=  'apache' )
  5.                 return $rules;
  6.            
  7.             $rules  .=   "\n\n" . 'RewriteCond %{HTTP_USER_AGENT}  ^.*sitechecker.*$ [NC,OR]
  8. RewriteCond %{HTTP_USER_AGENT}  ^.*whatcms.*$ [NC,OR]
  9. RewriteCond %{HTTP_USER_AGENT}  ^.*wpthemedetector.*$ [NC,OR]
  10. RewriteCond %{HTTP_USER_AGENT}  ^.*wappalyzer.*$ [NC,OR]
  11. RewriteCond %{HTTP_USER_AGENT}  ^.*wpdetector.*$ [NC,OR]
  12. RewriteCond %{HTTP_USER_AGENT}  ^.*isitwp.*$ [NC]
  13. RewriteRule .* - [F,L]' . "\n";
  14.            
  15.             return $rules;
  16.            
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement