.htaccess - htaccess rewriteRule restrict access to one particular folder problem -


I have a problem preventing Folder Ink.

This is only the Ink folder in the root directory and the encoded folders are not higher than

Problems:

  • IE will start a download / open dialog and

  • FF displays a included file

  • < / Ol>

    I do not have this problem with the images folder which is also in the root directory.

    Please use what logic can I use to prevent this? Please type

      option + follow link rewriteInnineOnOnOption All-index indexIgnore * #Revrett Raul ^ Inc ($ | /) - [R = 403, L] Revoked% {HTTP_REFERER}! ^ Http: // ([-a-z0- 9] + \.)? Taxi-Bell \ .NL [NC] Rewriter \. (Gif | png | jpg | css | js) $ - [F, NC, L]  
    #
      rewrite cnd% {REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME}! -f Rev. Raul ^ (. *) $ Index.php? Url = $ 1 [QSA, L]  
    #
      rewrite% {HTTP_HOST} ^ www. (. *) [NC] River Ite Rule ^ (. *) $ Http: //% 1 / $ 1 [R = 301, NC, L]  

    Edit Because

    I have solved this problem by adding this rule to Directory Index index.php

    and , In which an index.php is placed in the Ink folder, which indicates an error file, - or you can make it an error page - and the problem is resolved!

    Thanks, Richard

    The rules you comment can do this:

      rewrite rule ^ inc ($ | /) - [F, L]  

    and I want to send 403 to 404. But Apache 2 is required for this.


    Comments

    Popular posts from this blog

    asp.net - Javascript/DOM Why is does my form not support submit()? -

    sockets - Delphi: TTcpServer, connection reset when reading -

    javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -