|
I run Rails and became tired of seeing 404s to standard ASP or PHP software (such as phpmyadmin), so I added this to our Apache conf: RewriteRule \.(asp|aspx|php|jsp)$ - [F,L,NC] RewriteRule (w00tw00t) - [F,L,NC] RewriteRule (phpmyadmin) - [F,L,NC] RewriteRule (php-my-admin) - [F,L,NC] That cuts off those requests before they hit a Rails process and suck up any additional resources. |