Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Security :: Archives ⇒ What are security issues if using blank htaccess? :: Archived


What are security issues if using blank htaccess? :: Archived
Post any security related questions in here.
Please send discovered reports to security @ cpgnuke.com
Do Not post links to exploits or hacker sites - your post will be edited/deleted.
If you think you've been hacked, FIRST go through your server logs.

Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Security

Topic Archived View previous topic :: View next topic  
Author Message
Tonic
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 40

PostPosted: Tue Jul 20, 2004 2:02 am
Post subject: What are security issues if using blank htaccess?

When I installed cpg nuke a few days ago, I had been getting 500 internal server errors, read up on these forums that it could be the .htaccess file... so I made the file blank, and it works now.

What is this going to do with the security of my website?

I know this is the wrong forum to mention this but: How should I modify my .htaccess file(s) to work with my server? (web hosted, not local.)

Thanks in advanced for all help and answers!


Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/1.3.29/4.3.4
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jul 20, 2004 2:05 am
Post subject: Re: What are security issues if using blank htaccess?

Don't make it blank - you may only need to comment out the last line, which has worked for others, like below. Leaving it blank is like parking an expensive new car in a bad neighborhood, with the keys in the ignition.

#Options -Indexes

btw, this is the correct forum, but you need to provide more info about OS/Apache/PHP/MySQL versions if you want help - what's in your profile is useless.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Tonic
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 40

PostPosted: Tue Jul 20, 2004 2:28 am
Post subject: Re: What are security issues if using blank htaccess?

bah it did not work... here is my server info:

PHP Version 4.3.4
FreeBSD-Server version: Apache/1.3.29 (Unix)
MySQL 4.0.13

php info @ www.tonic-discharge.com/info.php


Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/1.3.29/4.3.4
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jul 20, 2004 2:52 am
Post subject: Re: What are security issues if using blank htaccess?

ask your host to enable mod_rewrite

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Śyama_Dāsa
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 2048
Location: Dragonfly CMS Tribe
PostPosted: Tue Jul 20, 2004 6:30 am
Post subject: Re: What are security issues if using blank htaccess?

try just this
Code::
<limit GET PUT POST>
order allow,deny
allow from all
</limit>

# deny most common except .php
<filesmatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</filesmatch>

#Disable .htaccess viewing from browser
<files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</files>

<files ~ "\config.php$">
deny from all
</files>

# You can change to yoursite.com
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
Do you know if php is running as a module or as cgi?

_________________
AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM

Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Tonic
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 40

PostPosted: Tue Jul 20, 2004 6:32 am
Post subject: Re: What are security issues if using blank htaccess?

cgi - and mod_rewrite is enabled. going to test script... I'll post if works.


Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/1.3.29/4.3.4
Back to top
View user's profile Visit poster's website
Tonic
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 40

PostPosted: Tue Jul 20, 2004 6:33 am
Post subject: Re: What are security issues if using blank htaccess?

awsome, worked. Thanks akamu Smile


Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/1.3.29/4.3.4
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jul 20, 2004 8:28 am
Post subject: Re: What are security issues if using blank htaccess?

Guess you didn't apply the change I provided - commenting out is exactly the same result.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
rusty_blade
Nice poster
Nice poster

Offline Offline
Joined: May 16, 2004
Posts: 136
Location: Toronto, Canada
PostPosted: Tue Jul 20, 2004 11:26 am
Post subject: Re: What are security issues if using blank htaccess?

OK, I posted this a while ago. I have been getting frequent errors on my server, but no one said how to modify the .htaccess. So I did it the way akamu posted, and I will tell you later if I see any errors later on.


rusty_blade's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
WinXP Pro; Apache 2; mysql-3.23.38; PHP 4.3.6
Back to top
View user's profile Visit poster's website
tour93
Gold Supporter
Gold Supporter

Offline Offline
Joined: Apr 20, 2004
Posts: 526
Location: florida
PostPosted: Tue Jul 20, 2004 4:33 pm
Post subject: Re: What are security issues if using blank htaccess?

Tonic said he is using php in cgi mode. My host told me I need to use php.ini instead of .htaccess. Anybody had to do that before?

_________________



tour93's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39/4.1.22/4.4.7/Dragonfly9.1.2.1
Back to top
View user's profile Visit poster's website MSN Messenger
jody
Newbie
Newbie

Offline Offline
Joined: Jul 16, 2004
Posts: 6

PostPosted: Tue Jul 20, 2004 9:02 pm
Post subject: Re: What are security issues if using blank htaccess?

I'm kinda in the same boat.

I have installed Power Movie List. I couldn't get it to work properly with the .htaccess in my root (from CPG Nuke), even though PML created a .htaccess in its own directory. I found out (through trial & errorS) that it was my .htacess in my root that was "overidding" it. I emptied it out.

What should I have in there if I want my PML to work properly?


jody's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
?
Back to top
View user's profile Visit poster's website
Tonic
Newbie
Newbie

Offline Offline
Joined: Jul 20, 2004
Posts: 40

PostPosted: Tue Jul 20, 2004 9:11 pm
Post subject: Re: What are security issues if using blank htaccess?

Phoenix wrote:
Guess you didn't apply the change I provided - commenting out is exactly the same result.

Well I tired to remove what you told me to, maybe I had removed too much, or not enough... When I did compare the two htaccess (origonal exempt the last line) and the one akamu provided they looked identical... I tried it anyway, and it had worked... dunno what I had done wrong than Rolling Eyes

Thank you both for the help Smile


Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/1.3.29/4.3.4
Back to top
View user's profile Visit poster's website
chris333
Nice poster
Nice poster

Offline Offline
Joined: Jun 06, 2004
Posts: 52
Location: Luxembourg
PostPosted: Tue Nov 02, 2004 4:30 am
Post subject: Re: What are security issues if using blank htaccess?

i have the same problem as some guys here, but i installed the latest cvs, if i use the htaccess i get the "Internal Server Error" error, what's wrong?

my testsite is here: www.yoohoo.lu/cpgn9/

_________________
www.nukecommunity.com

chris333's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DebianGNU/1.3.31/4.0.18/4.3.4/8.3 CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
NEMINI
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Apr 22, 2004
Posts: 4551

PostPosted: Tue Nov 02, 2004 4:36 am
Post subject: Re: What are security issues if using blank htaccess?

change:
Code::
php_flag register_globals 0
tp
Code::
#php_flag register_globals 0

_________________
NEMINI.org, NEMINI.us, NEMINI.info, NYMINI.org

NEMINI's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS
Back to top
View user's profile Visit poster's website Photo Gallery
chris333
Nice poster
Nice poster

Offline Offline
Joined: Jun 06, 2004
Posts: 52
Location: Luxembourg
PostPosted: Tue Nov 02, 2004 5:05 am
Post subject: Re: What are security issues if using blank htaccess?

GMINI03 wrote:
change:
Code::
php_flag register_globals 0
tp
Code::
#php_flag register_globals 0

thx, Very Happy could you also explain to me what have i done if i don't use that line, do i miss something? the other question why does every use the file and has no problems but i have to remove that line? is it a problem with my server software?

_________________
www.nukecommunity.com

chris333's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DebianGNU/1.3.31/4.0.18/4.3.4/8.3 CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Security
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

pročitaj još...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy