I understand this isn’t exactly what you’re looking for but these hackers are most likely bots and redirecting them won’t matter at all. I suppose you could modify the below code if you reallllly wanted to but this will redirect anybody looking for an author back to your homepage.
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^/?author=([0-9]*) [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}/? [L,R=301,NC]
Related Posts:
- PHP – redirect https to http and www to non-www
- How Attackers write script into my php files?
- malware undetectable by multiple scans
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How to create custom 401, 403 and 500 error pages?
- How to use nonce with front end submission form?
- esc_attr() right way and use
- Enforcing password complexity
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- Is this a hacking script in function.php?
- Renaming wp-content folder dynamically
- How do I create a WP user outside of WordPress and auto login?
- Bypass .htaccess when using download_url
- Security – Ajax and Nonce use [closed]
- Which ways can be used to log in to WordPress?
- How can I run a .php file located in my site’s root folder?
- Fix 403 error on WordPress multisite network using subdomains
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Is it unsafe to put php in the /wp-content/uploads directory?
- How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?
- How to run multiple websites from single WordPress setup
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- How to override .htaccess with new rules without ftp or edit it manual
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Sanitize get_query_var() url parameters
- Check if current page is wp-admin
- When must I use and verify nonce?
- Hiding WordPress Plugin Source Code
- Is this code malidcous
- Change the actual (or viewable) WordPress directory structure
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Admin username and password
- Evaluations of two wordpress security plans against php code injection attack
- Cannot get media type from ‘x-mapp-php5’
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- WordPress custom login form using Ajax
- How to change home or site url using action hooks or filter?
- Apache Fallback instead of add_rewrite_rule
- 3 blogs same installation, without WP MU
- Detect session/cookie variable in wordpress to prevent access to documents
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- Two Different Links for Same Product – WooCommerce [closed]
- SQL Injection blocked by firewall
- How to prevent XSS alter custom global javascript object & methods in WordPress
- Was told to change the .htacess file form .html to .php so this would work properly
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- how to combine wordpress htaccess on my root domain + php on subfolder
- subdirectory index.php is not working
- custom url rewrite for wordpress
- Hacked WordPress website /Homepage redirect [closed]
- Cannot execute php files in wp-content
- Loading index.php contents which located outside blog folder for post single page
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- WP & Server Speed [Teacher Question]
- Security: blocking direct access of php files
- WordPress add_rewrite_rules for custom URLs ending in .html
- Correct and safe way to include php content in my page
- Password minimum length in personal subscription [closed]
- How to add API security keys into JS of wordpress securely
- Is it best to avoid using $wpdb for security issues?
- Hardening uploads folder in IIS breaks images
- wp_redirect only works on main site and not on other sites
- Security updates to 3.3.2
- how to prevent wordpress admin from logging in via woocommerce my-account page
- Decoded malware code [closed]
- Seo Friendly Filter URLs
- Is this a correct usage of ob_start() in my WordPress project?
- How to allow download url redirection only if user logged in WordPress site?
- How to disable all logins except Network login in WordPress Multi site?
- Logout redirects to default page
- Removing files programmatically
- Manually Create PHP Page For A Redirect
- Updating From Mobile App – Exposing Site to Hacking
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Simple seo-friendly custom $_GET url rewrite with htaccess
- Admin Menu new tab external link
- security concerns if using html data-* attribute for l10n?
- send popup after wp_redirect()
- How to correctly escape an echo
- How to make Subdomain work for product_tag?
- Reject all malicious URL requests functions.php
- How to serve WordPress folder over subdomain?
- portfolio site – about this site section – is it safe to post some code
- Custom Login page, redirection and restrictions
- random post redirect in wordpress with a .php file
- echo cutom css code to WordPress page template file ? is this safe?
- Implementing a multilingual WordPress site by installing several instances of WordPress and redirecting
- Pages from admin dasboard missing after site migration
- How to secure my php forms
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- Should I prevent access to .htaccess and wp-config.php files?
- $.ajax results in 403 forbidden
- Site infected by link
- Access WP files on “server 1”, from “server 2” – using wp-load on an external website
- Detect what link user clicks and Redirect to a specific page for logged in users only
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page