Author |
Message |
shawn_himself
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: May 28, 2006
Posts: 40
|
Posted:
Mon Aug 07, 2006 1:17 am |
|
is it recommended to leave the htaccess to 644 after install is complete ?
if not where should it be chmoded too ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Mon Aug 07, 2006 2:09 am |
|
you can leave it to that... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shawn_himself
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 07, 2006 2:23 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Dauthus
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/42520917428009cb57e55.jpg)
Joined: Oct 07, 2003
Posts: 211
|
Posted:
Mon Aug 07, 2006 3:34 pm |
|
Can Sentinel still write to the .htaccess file if it is chmod to 644? I couldn't on my webserver. |
_________________ Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tao_Man
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/0c1fca04410ac30d09c51.gif)
Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK
|
Posted:
Mon Aug 07, 2006 3:50 pm |
|
Dauthus wrote: | Can Sentinel still write to the .htaccess file if it is chmod to 644? I couldn't on my webserver. |
It depends on how the system is set up, some shared hosting plans will not work unless it is 666, the lower the better so try 644 first and then 666 if you have to. |
_________________ ------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Aug 08, 2006 1:24 pm |
|
I agree with all that has been said, but just wanted to expound upon the concept so others will benefit from the "process". Start with the lowest and incrementally increase until it finally works.
Therefore, in this scenario, I would try 644 first (as others has suggested), then try 664, followed by 666. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ccac
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: May 23, 2006
Posts: 40
|
Posted:
Sun Aug 27, 2006 9:21 am |
|
Why does sentinel need to write to .htaccess ?
I ask this because I recently got a 505 Internal Server Error..
When I checked I found in the .htaccess that the most recent (and first in my case) hacker had been caught! To the ennd of the .htaccess file it added: deny from 216.145.5.42
The problem was that it added this to the end of the .htaccess file right behind a google tap script. So the script failed and the server refused to function.
Is there a work around for this? I dont want the server to get a 505 every time a hacker is caught. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 27, 2006 10:48 pm |
|
Sentinel does not "need to write to .htaccess", but for most sites (where it does not cause a 500 error), it is a good thing because then that hacker's IP is banned at the web server level so that they never can get back to the site to try more things...
You have to leave a blank line at the bottom of your .htaccess file in order for Sentinel to write to it. Don't know what issue you are really having. I have google tap rewrite statements galore in my .htaccess along with many other little "tricks" and Sentinel can still write to it just fine.
If you do not wish for Sentinel to write to the .htaccess file, remove that option from each of your blockers (using the Blocker Configuration). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ccac
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 27, 2006 11:44 pm |
|
Ahh Thank You for the info.
Here was the error.
The last line in .htaccess was something like:
RewriteRule ^links.html links.html
and sentinel wrote to the .htaccess it saved as:
RewriteRule ^links.html links.html DENY FROM 216.145.5.42
It didnt index.
So I changed this to:
RewriteRule ^links.html links.html
#sentinel code
DENY FROM 216.145.5.42
Should that fix the error? Should it index correctly now? Or do I need to add a return under it so there is a blank line?
Thanks~~!! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 28, 2006 12:27 am |
|
Just leave one blank line at the end. I.e., I believe hitting the carriage return after the .42 line should suffice. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ccac
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 28, 2006 10:50 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|