Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
htaccess not removing script kiddies
I have a section of my htaccess to remove attacks from script kiddies:
RewriteCond %{REQUEST_URI} ^.*(wordpress|joomla|drupal|ajax).*$ [NC,OR]
[...lots more...]
RewriteCond %{REQUEST_URI} ^.*(blog).*$ [NC]
RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
This does not work any more. Now it generates a 404. I think this used to work at my old hosting company under Apache, but may not now under Litespeed? Any suggestion of why that might be?
Last edited by skewray (2017-06-18 17:35:02)
Offline
Re: htaccess not removing script kiddies
Hi skewray
It looks fine to me but do check out what we have on our htaccess file on github
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: htaccess not removing script kiddies
@skewray,
Could you please share here the now-working .htaccess snippet? It could help other users trying to solve the same issue. Thanks.
Offline
Re: htaccess not removing script kiddies
RewriteCond %{REQUEST_URI} (wordpress|joomla|drupal|ajax) [NC,OR]
[...snip...]
RewriteCond %{REQUEST_URI} (blog) [NC]
RewriteRule .* http://%{REMOTE_ADDR}/ [R=301,L]
Offline