Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
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
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
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
Offline