Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-05-07 12:07:26

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

Re: jquery - viewport

Hi Pete

At the moment there are no redirects as some ISPs seem to not like them. i wish that the htaccess rule worked and I would add the ip address you suggested.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#17 2015-05-08 01:12:59

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: jquery - viewport

What about this?

RewriteCond %{REQUEST_URI} ^/(admin|ckeditor|connectors|editor|fckedior|Tester|uploadTester|wp|wp-admin|wp-content|wp-login|xmlrpc).* [NC]
RewriteRule .* - [F,L]

But, if you have an URL which also contains, for example, the expression “editor” or “tester”, then it’s blocked too.

Offline

#18 2015-05-08 05:21:57

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

Re: jquery - viewport

Hi that works but for me it’s the same as a 404 which is what they get anyway. The idea is to redirect them to another url so as to get them away from the site sooner rather than have them try -which some of them do – 50 different combinations.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2015-05-08 12:18:07

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: jquery - viewport

To the new, poor victim, which then must be active again.

RewriteRule .* http://to-the-new-poor-victim.net/ [R=301,L]

Or how gaekwad wrote.

Offline

#20 2015-05-08 14:36:14

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

Re: jquery - viewport

GugUser wrote #290572:

To the new, poor victim, which then must be active again.

RewriteRule .* http://to-the-new-poor-victim.net/ [R=301,L]...

Or how gaekwad wrote.

Again, thanks so much for all your advice. No, that rule does not work as it just returns a 404. My bad I had a typo. Works as expected. thanks sooo much


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#21 2015-05-08 14:50:25

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: jquery - viewport

Because the complete thing is:

RewriteCond %{REQUEST_URI} ^/(admin|ckeditor|connectors|editor|fckedior|Tester|uploadTester|wp|wp-admin|wp-content|wp-login|xmlrpc).* [NC]
RewriteRule .* http://to-the-new-poor-victim.net/ [R=301,L]

And you have to replace my invented URL http://to-the-new-poor-victim.net by the URL of your “enemy”.

Last edited by GugUser (2015-05-08 14:52:25)

Offline

#22 2015-05-08 15:01:03

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

Re: jquery - viewport

Hi I actually did that with Pete’s IP but I forgot the dot before the asterisk. On further testing it semi works. ie it works only if the word comes after the url so if somebody visits domain.tld/wp/ they are kicked out but if somebody visits domain.tld/something/wp/, they get a 404.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 2015-05-08 15:46:14

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: jquery - viewport

RewriteCond %{REQUEST_URI} (admin|ckeditor|connectors|editor|fckedior|Tester|uploadTester|wp|wp-admin|wp-content|wp-login|xmlrpc) [NC]

Offline

#24 2015-05-08 16:20:19

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

Re: jquery - viewport

Thank you, Thank you, Thank you that indeed works as expected!!!


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB