Fix 418 Unused Error on Dreamhost

TL;DR: Have a look at the error log and then to the violated rule.

Suddenly, I started to get 418 errors on one of my sites. I’d just get 418 from the source and as they say: that was that. Normally, I don’t even notice such errors, but this one broke a bunch of pages.

The 418 errors look in general like this:

Now, this translates to an rule for mod_sec2. To fix, you need to go to the file referred by the error, at the specific line and see what is all about. Most errors are legitimate.

In my original case, I had a 418 translating to basically access denied because I tried to access /wp-login uri more than the allowed frequency because I mistyped the password several times. All I had to do was to stop trying and wait until the mesaured time had elapsed (60 seconds).

In summary, the process is:

  1. ssh onto the account to look at the logs
  2. Go to ~/logs/site/http and look at error.log
  3. Identify the 418 errors
  4. Look at the violated rule identified by the file and line components of the log entry

Main credit goes to Duncan Lock although the only thing I had to do to fix it was to just wait a few minutes.


A little experiment: If you find this post and ad below useful, please check the ad out :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top