Skip to content

PHP Blog

Snippets and guides

Andre Board

LAMP PHP Developer, Zend Certified PHP Engineer (ZCE), Certified Laravel Developer

  • GitHub
  • Portfolio

Recent Posts

  • PHP Self Type Hint
  • Closure vs Callable Type Hinting
  • PHP Overloading vs Overriding
  • Law of Demeter in PHP
  • PHP Higher Order Functions

Recent Comments

    Categories

    • advanced
    • apache
    • design patterns
    • http
    • mysql
    • php
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Prevent Viewing of .htaccess files

    Inside your .htaccess file add:

    
    
    order allow,deny
    deny from all
    
    
    
    Posted on March 21, 2018Author dreboardCategories apacheTags .htaccess

    Post navigation

    Previous Previous post: Slim 3 PHP Routes Return 404 Page Not Found
    Next Next post: Prevent Files from being cached
    Proudly powered by WordPress