Results 1 to 3 of 3

Thread: .htaccess file permissions

  1. #1
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    .htaccess file permissions

    Quick question

    I want a .php script to write deny rules to my .htaccess file in the event an IP trys to access an area of my webserver.

    .php runs as a the apache user. Is there any security risk to allowing the apache user to write to the .htaccess file?
    □ΞVΞ□

  2. #2
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: .htaccess file permissions

    Probably not, provided php doesn't have a shell account. (Usual user for apache is apache)

    If you haven't done so already, you might want to read this:

    http://httpd.apache.org/docs/current.../htaccess.html
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  3. #3
    PHP Geek Flash477's Avatar
    Join Date
    Dec 2008
    Location
    Devon
    Posts
    822
    Thanks
    51
    Thanked
    72 times in 65 posts

    Re: .htaccess file permissions

    Well yes and no - the only reason yes is because if you can write to it then so can they. But the worse they should be able to do is give themselves access to files that you had set deny rules on.

    Just remember that most ISPs use dynamic IPs, so you could end up blocking a lot of legitimate users because someone previously used that IP address.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LaTeX2html problem...
    By bsodmike in forum General Discussion
    Replies: 4
    Last Post: 15-12-2010, 03:51 PM
  2. nero recode compiling volume failed
    By hvb in forum Welcome to HEXUS!
    Replies: 1
    Last Post: 02-09-2007, 10:14 AM
  3. Need help on my maxtor harddrives
    By arthurleung in forum PC Hardware and Components
    Replies: 10
    Last Post: 12-06-2007, 09:40 PM
  4. Multiple problems - help!
    By Ruggerbugger in forum Help! Quick Relief From Tech Headaches
    Replies: 7
    Last Post: 18-08-2006, 11:41 PM
  5. Nero vision express saying:'Burn process failed'
    By johnnr892 in forum Help! Quick Relief From Tech Headaches
    Replies: 15
    Last Post: 11-12-2005, 11:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •