This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function strip(html){ | |
let doc = new DOMParser().parseFromString(html, 'text/html'); | |
return doc.body.textContent || ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $block_sql_injections 0; | |
if ($query_string ~* "(select|concat|case|sleep|md5|count\()") { | |
set $block_sql_injections 1; | |
} | |
if ($query_string ~* "\(case") { | |
set $block_sql_injections 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 3000; | |
charset utf-8; | |
error_page 404 500 /404.html; | |
location / { | |
rewrite ^(.+)/$ $1 permanent; | |
index index.html; | |
root /my/project/path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#search { | |
margin: auto; | |
} | |
#search-container { | |
width: 500px; | |
height: 300px; | |
margin: auto; | |
} |
NewerOlder