.htaccess or equivelant for IIS 6

  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

Hi

I'm using PHP on a MS ISS 6 server (shared account), and I have a writeable folder (ie set to 777) so that files can be uploaded via a CMS.

There appears to be less security in place on IIS, and I'd like to use something like an .htaccess file to prevent scripts being exectuded in the writable folder - eg. certain file types are read as plain text.
I dont need it for creating a password protected folder or for custom error pages, or for SE friendly URLs.

Please dont tell me to move to Apache; I'd love to but its simply not an option.

Any ideas?? :roll:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

You can handle that by Windows permissions.
.htaccess is not available for IIS but there is an equivalent For IIS look into Isapi rewrite filter like this one
http://www.codeplex.com/IIRF
  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

Hi Atno

Would I be able to install this on a shared account, or would the host need to install it on their server?
Would I be able to use this only for a specific folder and its sub-folders?
Anywhere where I can see examples?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I've honestly never had any need to use it so I don't know. I just know that's the only way to do it on Windows. But I can answer one question, your host would need to install it on their server.
  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

Thanks
You're right the web is a dominatrix!

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.