2019-04-19

A10 Aflex Note

HTTP轉HTTPS

Name
ALL301_HTTP_TO_HTTPS
Definition
when HTTP_REQUEST {
            HTTP::respond 301 "Location" https://[HTTP::host][HTTP::uri] 
}
Name
ALL302_HTTP_TO_HTTPS
Definition
when HTTP_REQUEST {
            HTTP::respond 302 "Location" https://[HTTP::host][HTTP::uri] 
}

Name
Reject TLS1.0
Definition
when CLIENT_ACCEPTED {
TCP::collect
}

when CLIENT_DATA {
binary scan [TCP::payload] cSSccSS rtype dumver rlen dum1 dum2 dum3 sslver
# SSL 3.0 -> 768 TLS 1.0 -> 769 TLS 1.1 -> 770 TLS 1.2 -> 771
if { $sslver <= 769} {
reject
}
}

Name
Reject TLS1.1
Definition

when CLIENT_ACCEPTED {
TCP::collect
}

when CLIENT_DATA {
binary scan [TCP::payload] cSSccSS rtype dumver rlen dum1 dum2 dum3 sslver
# SSL 3.0 -> 768 TLS 1.0 -> 769 TLS 1.1 -> 770 TLS 1.2 -> 771
if { $sslver <= 770} {
reject
}
}

-------------------------------------------------------
開頭符合網址
轉導至另一個網址

Name
masakichen.blogspot.com_Redirect
Definition
when HTTP_REQUEST {
if {[HTTP::host] starts_with "masakichen.blogspot.com" } {
     HTTP::redirect "http://www.blogspot.com/"
  }

}

-------------------------------------------------------
網站VIP Session超過多少
轉導至另一個網址
Name
CurrCoon_Sess_Busy_Redirect_masakichen.blogspot.com
Definition
when HTTP_REQUEST {
   set URI  [HTTP::uri]
   set curr_sess [STATS::get virtual-server 0.0.0.0 current-connection]

   if {  $curr_sess > 22000  } {
  HTTP::redirect "http://www.blogspot.com/"
  }
  }

沒有留言:

張貼留言

不管是支持還是抱怨,都歡迎讓我知道

Related Posts Plugin for WordPress, Blogger...