LoginSignup
0
2

More than 5 years have passed since last update.

スパムを防ぐメールアドレスのマークアップ

Last updated at Posted at 2017-06-19

メールアドレスのマークアップで悩んだのでメモ

解決方法
メールアドレスをHTMLエンティティ化して、マークアップ。
HTMLエンティティ表記とは,"&"と";"の間に文字コードを記述して文字を表示方法。

*2017年6月19日追記
コメント欄で指摘いただいているように、スパム対策にはなりません。
別の方法を推奨します。

HTMLエンティティ変換サイト↓
http://hp.vector.co.jp/authors/VA022023/javascript/make_html_entity-ja.htm

参考にしたサイト
http://www.icts.nagoya-u.ac.jp/ja/security/address-open.html#entity

※ただ、お問い合わせフォームを設置するのが一般的です。

0
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2