WordPress 6.6.2 and older? | WordPress.org

[ad_1]

Hi there,

I am really sorry to hear about that. It sounds like you’re dealing with unwanted traffic or bots targeting the “/*” URL. Changing the permalinks to Plain is a good temporary solution, but it’s not ideal for long-term SEO.

To address this, you can try the following steps:

  1. Block the URL using .htaccess: Add this code to your .htaccess file to block requests to the “/*” URL:
 RewriteEngine On
RewriteRule ^-$ - [F,L]

This will return a 403 Forbidden error for that specific URL.

  1. Use a security plugin: A plugin like Wordfence or Sucuri can help block malicious bots and rate-limit requests.
  2. Enable a firewall: Consider a web application firewall (WAF) like Cloudflare to filter out bad traffic.

Hopefully, one of these solutions will help reduce the bandwidth usage.

Thread Starter
sajay

(@sajay)

Thanks. I’ve added that code to the htaccess file and it appears to be working.

If you want to go back to your prefered permalinks, these two plugins might help:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer