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


Offline Joined: Jul 20, 2004 Posts: 40
|
Posted: 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 |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
Tonic Newbie


Offline Joined: Jul 20, 2004 Posts: 40
|
Posted: 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 |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: 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 |
|
 |
Tonic Newbie


Offline Joined: Jul 20, 2004 Posts: 40
|
Posted: 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 |
|
 |
Tonic Newbie


Offline Joined: Jul 20, 2004 Posts: 40
|
Posted: Tue Jul 20, 2004 6:33 am Post subject: Re: What are security issues if using blank htaccess? |
|
awsome, worked. Thanks akamu
Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD/1.3.29/4.3.4
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
rusty_blade Nice poster


Offline Joined: May 16, 2004 Posts: 136 Location: Toronto, Canada
|
Posted: 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 |
|
 |
tour93 Gold Supporter


Offline Joined: Apr 20, 2004 Posts: 526 Location: florida
|
Posted: 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 |
|
 |
jody Newbie


Offline Joined: Jul 16, 2004 Posts: 6
|
Posted: 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 |
|
 |
Tonic Newbie


Offline Joined: Jul 20, 2004 Posts: 40
|
Posted: 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
Thank you both for the help
Tonic's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD/1.3.29/4.3.4
|
|
| Back to top |
|
 |
chris333 Nice poster


Offline Joined: Jun 06, 2004 Posts: 52 Location: Luxembourg
|
Posted: 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 |
|
 |
NEMINI Diamond Supporter


Offline Joined: Apr 22, 2004 Posts: 4551
|
Posted: 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 |
|
 |
chris333 Nice poster


Offline Joined: Jun 06, 2004 Posts: 52 Location: Luxembourg
|
Posted: 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,  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 |
|
 |
|
|