Skip to content

Instantly share code, notes, and snippets.

@yoshimana
Created September 15, 2013 14:00
Show Gist options
  • Save yoshimana/6571000 to your computer and use it in GitHub Desktop.
Save yoshimana/6571000 to your computer and use it in GitHub Desktop.
特定サイトから直リンされた画像を.htaccessで別の画像に差し替える方法 ref: http://qiita.com/yoshimana/items/3e7f0b3b1f7653bd1e08
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://対象サイトのURL/.*$
RewriteRule ^(.*)$ 置換え画像のURL [R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment