0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

aws wafv2の動作確認方法

Posted at

ルール

  • countモードはブロックは行わず記録のみする
  • Override rules actionは、有効化すると、そのルールのみcountモードになる
    image.png

NoUserAgent_HEADERルールの場合の動作確認

  • HEADERにUserAgentが含まれていない場合はブロックします。というルール

ブロック

yuta@DESKTOP-PT34LID:~$ curl  https://test.vamdemic.black.jp  -H "User-Agent:"
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
</body>
</html>
yuta@DESKTOP-PT34LID:~$ 

許可

yuta@DESKTOP-PT34LID:~$ curl  https://test.vamdemic.black  -H "User-Agent:a"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://test.vamdemic.black/dist/">here</a>.</p>
</body></html>
yuta@DESKTOP-PT34LID:~$ 
0
1
0

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?