Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'wp-hide/mod_rewrite_rules', '__mod_rewrite_rules', 10, 2 );
- function __mod_rewrite_rules( $rules, $type )
- {
- if ( $type != 'apache' )
- return $rules;
- $rules .= "\n\n" . 'RewriteCond %{HTTP_USER_AGENT} ^.*sitechecker.*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*whatcms.*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*wpthemedetector.*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*wappalyzer.*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*wpdetector.*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*isitwp.*$ [NC]
- RewriteRule .* - [F,L]' . "\n";
- return $rules;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement