home *** CD-ROM | disk | FTP | other *** search
/ Old Images (88x31 and more) / oldimages.iso / images / LocalOnly.htaccess < prev    next >
Encoding:
Text File  |  2000-11-30  |  2.3 KB  |  64 lines

  1. #
  2. #  .htaccess file for Apatche Servers (version 1.2 and greater)
  3. #
  4. # These configuration directives will allow local users to use the
  5. # Example Images Pages.  But will redirect non-local users to the
  6. # External (no preview) page "Images_Ext.html".
  7. # This allows you to let local users use the preview index pages showing
  8. # the images provided by this collection. However....
  9. # External users can still see the individual images (like when they are
  10. # using in documents all over your web server), and look at them one at
  11. # a time but are NOT allowed to use the preview page. They are
  12. # redirected instead to the "Images_Ext.html" file which allows them to
  13. # preview the images on some other server.
  14. #
  15. # INSTALLATION:
  16. #   1/ Copy this file as ".htaccess" in your images directory
  17. #   2/ Edit this file and replace ".your.domain"  below with the the
  18. #      domain of local users allowed to access your example images pages.
  19. #   3/ Create a Symbolic Link called "Images_Ext.html" in your top level
  20. #      document directory ("FollowSymLinks" Option must be enabled).
  21. #   OR Copy the "Images_Ext.html" to that directory
  22. #   OR Edit the last server directive in this file (See below).
  23. #
  24. #
  25. # WARNING: The Following htaccess options are only valid for
  26. #          apatche servers version 1.2 and greater.
  27. #
  28. # ---------------------------------------------------------------------
  29. # Allow Directory listings and Symbolic Links but no SSI or CGI
  30. Options Indexes FollowSymLinks
  31.  
  32. # Images are avaliable to everyone in the world
  33. order allow,deny
  34. allow from all
  35.  
  36. # But to non-domain users deny access to example image pages
  37. <Files /*/Images*.html>
  38. order deny,allow
  39. deny from all
  40. allow from  .your.domain
  41. allow from localhost
  42. </Files>
  43.  
  44. # External (No Examples) Images file, must be accessable
  45. <Files /*/Images_Ext.html>
  46. order allow,deny
  47. allow from all
  48. </Files>
  49.  
  50. # Direct ``access denied'' errors to this sub-directory.
  51. # The following command can either be..
  52. #   1/ Left as is, but creating a symbolic link in the web servers
  53. #      document root to this file in this directory.
  54. #      Requires the ``FollowSymLinks'' Option  to be allowed in the
  55. #      servers document root directory.
  56. #   2/ Set this to the URI of the real document in this directory.
  57. #      Which should be accable by the world due to the previous 
  58. #      server configuration directive.
  59. #
  60. ErrorDocument 403 /Images_Ext.html
  61.  
  62.