]> git.bochard.net Git - mysite.git/commitdiff
added .htaccess to multiple directories
authorbochard <git@bochard.net>
Sat, 2 Aug 2025 11:17:52 +0000 (19:17 +0800)
committerbochard <git@bochard.net>
Sat, 2 Aug 2025 11:36:39 +0000 (19:36 +0800)
.htaccess
audios/.htaccess [new file with mode: 0644]
images/.htaccess [new file with mode: 0644]
index.php
journal/.entry [new file with mode: 0644]
journal/.htaccess
journal/entry.php.example [deleted file]
parts/.htaccess [new file with mode: 0644]
recipes/index.php
stylesheets/.htaccess [new file with mode: 0644]

index 0cfcad32b23f94dfaaf5ad80f73925a496d09699..8523e16dcb9152df3f05e1ef6a4724f8a1511a7c 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -3,3 +3,8 @@ RewriteEngine On
 #Redirect root to www
 RewriteCond %{HTTP_HOST} ^bochard\.net [NC]
 RewriteRule ^(.*)$ http://www.bochard.net/$1 [R=301,L]
+
+#Forbidden access
+<Files .htaccess>
+       Require all denied
+</Files>
diff --git a/audios/.htaccess b/audios/.htaccess
new file mode 100644 (file)
index 0000000..e8ad090
--- /dev/null
@@ -0,0 +1,2 @@
+#Forbidden access
+Options -Indexes
diff --git a/images/.htaccess b/images/.htaccess
new file mode 100644 (file)
index 0000000..e8ad090
--- /dev/null
@@ -0,0 +1,2 @@
+#Forbidden access
+Options -Indexes
index 30ae7962de9201dd98dc9404138b8a8d30f7243d..a5da6fd90246e11c8059fe55692e0d54ab577d6e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -15,9 +15,9 @@
         <blockquote>“Ang munti ay magiging isang libo, at ang maliit ay magiging matibay na bansa: akong Panginoon, ay papapangyarihin kong madali sa kapanahunan.”</blockquote>\r
         <p align="right">–Filipos 60:22 &lpar;ADB1905&rpar;</p>\r
         <hr>\r
-        <p>Ang mumunting site na ito ay para lamang sa aking mga personal na gawain tulad ng talaraawan, mga librong madalas kong binabasa, mga kuha sa kamera ko, mga iba't-ibang mga bagay na kinahihiligan kong gawin, atbp.</p>\r
+        <p>Ang mumunting site na ito ay para lamang sa aking mga personal na gawain tulad ng talaarawan, mga librong madalas kong binabasa, mga kuha sa kamera ko, mga iba't-ibang mga bagay na kinahihiligan kong gawin, atbp.</p>\r
         <hr>\r
-        <p>Kung gusto mong mag-explore sa site ko, please—pakikonsiderang i-disable yung adblockerkung meron man. May mga nakalagay kasi na nawawala kapag naka-enable yung adblocker. At tsaka, hindi ko naman binabalak na ii-spy yung computer mo at wala rin naman akong pino-promote na mga ads dito. Ayun lang, salamat!</p>\r
+        <p>Kung gusto mong mag-explore sa site ko, please—pakikonsiderang i-disable yung adblockerkung meron man. May mga nakalagay kasi na nawawala kapag naka-enable yung adblocker. At tsaka, hindi ko naman binabalak na ii-spy yung computer mo at wala rin naman akong pino-promote na mga ads dito. Ayun lang, salamat!</p>\r
         <p>Kung sakaling maligaw ka, punta ka lang sa homepage :&rpar;</p>\r
         <hr>\r
         <p>Medyo mabagal pag-update ko ng site na ito, pasensiya naaaa!!!</p>\r
diff --git a/journal/.entry b/journal/.entry
new file mode 100644 (file)
index 0000000..eb53f60
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
+  $pgtitle = "Tala #1 -";
+  $pgdescription = "";
+  $pgcss = ["journal.css"];
+  head($pgtitle, $pgdescription, $pgcss);
+?>
+<body>    
+  <table id="content">
+    <tr>
+      <?php include_once("$parts/sidebar.php");?>
+      
+      <td id="body">
+        <h1 class="entry-title">Pamagat ng tala</h1>
+        <p class="written-date">Inilathala noong YYYY, ika-DD ng m.</p>
+        <hr>
+        <p>katawan...</p>
+      </td>
+    </tr>
+    
+               <?php include_once("$parts/footer.php");?>
+  </table>
+</body>
+</html>
index 7ef697c0111cbb4a9c008e2702900508f95d0d47..13191b8ed9ff84f5b63b1b8f9a55b8044638dbde 100644 (file)
@@ -1,3 +1,4 @@
-<Files ".entry.php.example">
+#Forbidden access
+<FilesMatch "^\.">
   Require all denied
-</Files>
+</FilesMatch>
diff --git a/journal/entry.php.example b/journal/entry.php.example
deleted file mode 100644 (file)
index eb53f60..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-  require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "Tala #1 -";
-  $pgdescription = "";
-  $pgcss = ["journal.css"];
-  head($pgtitle, $pgdescription, $pgcss);
-?>
-<body>    
-  <table id="content">
-    <tr>
-      <?php include_once("$parts/sidebar.php");?>
-      
-      <td id="body">
-        <h1 class="entry-title">Pamagat ng tala</h1>
-        <p class="written-date">Inilathala noong YYYY, ika-DD ng m.</p>
-        <hr>
-        <p>katawan...</p>
-      </td>
-    </tr>
-    
-               <?php include_once("$parts/footer.php");?>
-  </table>
-</body>
-</html>
diff --git a/parts/.htaccess b/parts/.htaccess
new file mode 100644 (file)
index 0000000..e8ad090
--- /dev/null
@@ -0,0 +1,2 @@
+#Forbidden access
+Options -Indexes
index 218da2c947ae46d09e5519ab486b2a9a01d42759..cf3d4eebd36dee14f2af46cc7ed19c0482cdb28d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
   require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
-  $pgtitle = "Mga recipe";
+  $pgtitle = "Mga resipi";
   $pgdescription = "Lutong ulam, panghimagas, atbp.";
   head($pgtitle, $pgdescription);
 ?>
diff --git a/stylesheets/.htaccess b/stylesheets/.htaccess
new file mode 100644 (file)
index 0000000..e8ad090
--- /dev/null
@@ -0,0 +1,2 @@
+#Forbidden access
+Options -Indexes