htaccess file help

Discussion in 'Software' started by Bustergut, Nov 21, 2005.

  1. Bustergut

    Bustergut Private E-2

    I have an application running OK on apache 1.3, php and mysql. However, I notice I can list out a file's (func.inc) code within HTDOCS which I don't users to be able to do. Obviously, I don't want the application to stop running the PHP scripts. Things users cannot do is list the contents of htdocs, nor see the contents of the php scripts. I understand the HTACCESS file might be able to help, but it's a bit of a mystery to me. Mine says

    <Files ~ "\.inc$">
    Order allow,deny
    Deny from all
    </Files>

    Any advice ?
     
  2. Wookie

    Wookie Sergeant Major


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds