Skip to main content

Monkianer

避免伺服器上的檔案直接被網址存取

2024-06-012024-06-01 Monkianer Apache
RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain [NC] 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.*$ [NC] 
RewriteRule \.(jpg|jpeg|png|gif)$ - [F]

[NC][F] flags 使用請參考
https://httpd.apache.org/docs/2.4/rewrite/flags.html

.htaccess apache

文章導覽

使用 MAMP 當作本地測試伺服器,編輯 functions.php 後,重新整理瀏覽器沒有更新
WordPress Social Icons 裡新增 Line icon

分類

  • AfterEffect
  • Apache
  • Arduino
  • AWS
  • C
  • createjs
  • CSS
  • Facebook
  • Github
  • Google
  • Grunt
  • GTM
  • Home
  • JavaScript
  • Mobile
  • NAS
  • Node
  • npm
  • Photoshop
  • PIXI
  • Playground
  • Sass
  • SVG
  • Vue
  • Wordpress
  • 未分類
  • 軟體工具

Links

  • ESP32 I/O
  • Mr Digital (很棒的 WP 教學)
  • Wordpress Full Site Editing Tutorial
  • You Don't Need jQuery!
  • SitePoint
  • 30 Seconds of CSS
  • unbox
  • PJCHENder
  • The Tools of an HTML Email Workflow
  • BEM
  • Yoichi Kobayashi
  • http://turtle.audio/
  • JOJO
  • rachelandrew.co.uk
  • Uplabs
  • A.I. Experiments
  • Workshop . ChromeExperiments
sparkling Theme by Colorlib Powered by WordPress