Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-06-18 17:34:24

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 197
Website

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

#2 2017-06-18 18:12:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,088
Website GitHub Mastodon Twitter

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

#3 2017-06-18 18:47:27

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 197
Website

Re: htaccess not removing script kiddies

colak wrote #306037:

Hi skewray

It looks fine to me but do check out what we have on our htaccess file on github

I took out some of the extraneous stuff that yours didn’t have, and now it works. Clearly I need to test my htaccess file more often. Thanks!

Offline

#4 2017-06-19 12:33:02

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2017-06-19 14:04:00

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 197
Website

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

Board footer

Powered by FluxBB