Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2015-07-14 20:28:15

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: We Love Textpattern (welovetxp.com) needs a new owner

hcgtv wrote #293177:

Yeah, but on my sites I have an .htacess file which prevents this, but it would be another method to identify sites if they haven’t renamed the Textpattern directory or are protecting it.

Interesting: can you share your code, if possible?
You choosed that for security reasons?
At the end did you hide your /textpattern directory or simply changed its name?

Offline

#38 2015-07-14 22:38:23

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: We Love Textpattern (welovetxp.com) needs a new owner

candyman wrote #293192:

Interesting: can you share your code, if possible?

This is the .htaccess I use on all my Textpattern sites, it resides in the Textpattern folder:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !textpattern(/setup)?/?$
 RewriteCond %{REQUEST_FILENAME} !textpattern/((setup/)?index|css)\.php$
 RewriteCond %{REQUEST_FILENAME} !textpattern/textpattern\.(css|js)$
 RewriteCond %{REQUEST_FILENAME} !textpattern/jquery\.js$
 RewriteCond %{REQUEST_FILENAME} !textpattern/txp_img/.+\.(jpg|gif|png)$
 RewriteCond %{REQUEST_FILENAME} !textpattern/theme/.+\.(jpg|gif|png|css)$
 RewriteRule ^(.*) - [F]
</IfModule>

Here’s one where it compares your IP address, if it’s a match it allows you entry to the admin, if not you can redirect the visitor to your home page.

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REMOTE_ADDR} !^192\.168\.1\.23
 RewriteRule ^(.*)$ http://yoursite.com/ [L,R=301]
 RewriteCond %{REQUEST_FILENAME} !textpattern(/setup)?/?$
 RewriteCond %{REQUEST_FILENAME} !textpattern/((setup/)?index|css)\.php$
 RewriteCond %{REQUEST_FILENAME} !textpattern/textpattern\.(css|js)$
 RewriteCond %{REQUEST_FILENAME} !textpattern/jquery\.js$
 RewriteCond %{REQUEST_FILENAME} !textpattern/txp_img/.+\.(jpg|gif|png)$
 RewriteCond %{REQUEST_FILENAME} !textpattern/theme/.+\.(jpg|gif|png|css)$
 RewriteRule ^(.*) - [F]
</IfModule>

The first .htaccess was worked on by a few of us, Ruud helped out, there’s a thread somewhere, but searching on this forum restricts you to 30 seconds per search, if you happen to make a typo or what you searched for didn’t turn up what you wanted, you’re out of luck.

Offline

#39 2015-07-15 05:10:10

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

Re: We Love Textpattern (welovetxp.com) needs a new owner

This are very nice rules Bert.

I have a post here where I suggest possible extensions to the htaccess file. Could you repost it there and possibly enhance my suggestions?


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

Offline

#40 2015-07-15 05:18:57

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

Re: We Love Textpattern (welovetxp.com) needs a new owner

hcgtv wrote #293194:

30 seconds per search, if you happen to make a typo or what you searched for didn’t turn up what you wanted, you’re out of luck.

You could also use the google site search on the top right of the forum as that has no time restrictions.


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

Offline

#41 2015-07-15 05:29:41

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: We Love Textpattern (welovetxp.com) needs a new owner

hcgtv wrote #293173:

…determine if Textpattern is being used, css.php is easy to spot, if they use a static CSS file, then it gets a bit harder.

Feeds are a reasonable indicator, too:

$ curl -s http://welovetxp.com/?rss=1 | grep generator
<channel><generator>http://textpattern.com/?v=4.5.0</generator>

Offline

#42 2015-07-15 07:59:59

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: We Love Textpattern (welovetxp.com) needs a new owner

colak wrote #293213:

I have a post here where I suggest possible extensions to the htaccess file. Could you repost it there and possibly enhance my suggestions?

I copied your .htaccess suggestions to a text file, will test out your suggestions locally and post in that thread.

Offline

#43 2015-07-15 08:04:24

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: We Love Textpattern (welovetxp.com) needs a new owner

wet wrote #293216:

Feeds are a reasonable indicator, too:

$ curl -s http://welovetxp.com/?rss=1 | grep generator...

Thanks Robert, I’m well on my way to having a nice script to test for a Textpattern install.

Offline

#44 2015-07-15 09:32:14

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: We Love Textpattern (welovetxp.com) needs a new owner

What if we include some custom HTTP header in future versions, say X-We-Love: Textpattern?

Offline

#45 2015-07-15 11:33:50

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: We Love Textpattern (welovetxp.com) needs a new owner

hcgtv wrote #293177:

My that’s a good idea, if they are running TXP 4.0.6, fire them off an email with update pricing.

$99 for an upgrade to 4.5.7, plugins are extra though.

Jeepers, if they’re running 4.0.6 they’re going to have so many questions when 4.5.7 appears, $99 or not.

Offline

#46 2015-07-15 13:10:16

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: We Love Textpattern (welovetxp.com) needs a new owner

Thanks for sharing, Bert.

Offline

#47 2015-07-24 11:45:44

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: We Love Textpattern (welovetxp.com) needs a new owner

gaekwad wrote #292844:

There’s no Textpattern Foundation.

I would welcome the idea of a Textpattern Foundation. If sombody had the intention to boost Textpattern development in conjunction with another project which depends on the Textpattern CMS because of its unique features, and because of previous work, then it would be less likly possible to raise funds for donation to developers, but more likly be possible to sponsor a foundation.

Offline

#48 2015-08-12 05:49:32

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: We Love Textpattern (welovetxp.com) needs a new owner

nice! Phil? Our Phil?


…. texted postive

Offline

Board footer

Powered by FluxBB