Giter Site home page Giter Site logo

Comments (14)

prashants avatar prashants commented on August 24, 2024

Can you test this web.config and let me know if it works. I dont have access to IIS

http://codeigniter.com/forums/viewthread/91954/#815352

from webzash-v1-defunct.

NewLion avatar NewLion commented on August 24, 2024

I have tested it and it works. That is, I've verified it using IIS URL Rewrite. Not sure of its use. Can you please explain it. FYI, the index.php/admin/status pages shows the following warnings:

Security Risk ! The application config directory "config/" is world readable.
Security Risk ! The application accounts directory "config/accounts/" is world readable.
Security Risk ! The users directory "config/users/" is world readable.
Security Risk ! The application settings directory "config/settings/" is world readable.
Security Risk ! The application backup directory "backups/" is world readable.

The above warnings still show after I have included two additional web.config for ./config and ./backups as subsitute for.htaccess deny from all in those directories:

Testing, i.e., browsing to ./backup or ./config throw the 401 error.

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

It checks the file permission. You can ignore it since its mostly applicable for Linux based machines.

from webzash-v1-defunct.

NewLion avatar NewLion commented on August 24, 2024

OK, good. So, in total there are now three web.config (root, root/config and root/backups). I am assuming all the other directories do not require any web.config or access restrictions. If so, lets close this issue as well.

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

I can use the same web.config in both the folder ? Just confirming because I will not be able to test it.

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

Fixed the bug. You can do

$git pull
$git checkout v1.x

Note that in checkout command it is v1.x

Or else download the latest version by clicking the below link.
https://github.com/prashants/webzash/zipball/v1.x

from webzash-v1-defunct.

NewLion avatar NewLion commented on August 24, 2024

What bug fixes are included in this checkout ?

Yes, both ./config and ./backups contain the same web.config

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

https://github.com/prashants/webzash/commits/v1.x

the top two feb 04 and feb 08

you can save your changes to a different branch and merge them on top of my changes when needed

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

fixed the insert statement issue at few places, added the web.config and fixed the closing balance issue

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

is it possible to add these rules to the web.config file in the root folder ?

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

can you please check if adding this rule to the main web.config file solves the problem

<rule name="Protect files and directories" stopProcessing="true">
    <match url="^(config|backups)$" />
        <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
</rule>

from webzash-v1-defunct.

NewLion avatar NewLion commented on August 24, 2024

Ok, I will test out your rule in web.config and let you know.

from webzash-v1-defunct.

prashants avatar prashants commented on August 24, 2024

Please let me know whether the above web.config changes will work. I could not get access to a IIS machine. Thanks.

from webzash-v1-defunct.

NewLion avatar NewLion commented on August 24, 2024

Sorry for not getting back to you. Got busy with other stuff. Will check and let you know soon.

from webzash-v1-defunct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.