Безопасность

Дополнительный rewrite для Drupal

Позволяет закрыть php файлы и некоторые мелочи - чтобы не долбились кулхацкеры :)
  1. location /modules{
  2. rewrite ^(.*\.php)$ /index.php?q=$1;
  3. rewrite ^(.*\.info)$ /index.php?q=$1;
  4. rewrite ^(.*\.module)$ /index.php?q=$1;
  5. }
  6. location /includes{
  7. rewrite ^(.*)$ /index.php?q=$1;
  8. }
  9. location /profiles{
  10. rewrite ^(.*)$ /index.php?q=$1;
  11. }
  12. location /sites{
  13. rewrite ^(.*\.php)$ /index.php?q=$1;
Subscribe to RSS - Безопасность