This file contains hidden or 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
<VirtualHost *:443> | |
ServerName securesite.com | |
ServerAlias www.securesite.com | |
DocumentRoot /var/www/securesite.com | |
# OCSP Stapling | |
SSLStaplingCache shmcb:/tmp/stapling_cache(128000) # place outside <virtualhost></virtualhost> | |
SSLCACertificateFile /etc/ssl/ca-certs.pem | |
SSLUseStapling on |
This file contains hidden or 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
<?php | |
echo "<h1>REQUEST HEADERS</h1>"; | |
$headers = apache_request_headers(); | |
foreach ($headers as $header => $value) { | |
echo "$header: $value <br />\n"; | |
} | |
echo "<h1>APACHE VARIABLES</h1>"; |
This file contains hidden or 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
#!/bin/bash | |
if [[ $# -ne 2 ]]; then | |
echo "WARN and CRIT thresholds not defined" | |
exit 3 | |
fi | |
warn="$1" | |
crit="$2" | |
tcp=$(ss -tan | tail -n +3 | egrep -c -v "UNCONN|LISTEN") |
This file contains hidden or 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
#!/bin/bash | |
curl -s https://check.torproject.org/exit-addresses | awk '/ExitAddress/ {print $2}' | sort -n |
This file contains hidden or 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
<?php | |
$ua = getenv('HTTP_USER_AGENT'); | |
$ip = getenv('REMOTE_ADDR'); | |
if (strpos($ua,'curl') !== false) { | |
echo "$ip \n"; | |
} | |
?> |
This file contains hidden or 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
diff -rupN /home/alex/source/weighttp/src/weighttp.c weighttp/src/weighttp.c | |
--- /home/alex/source/weighttp/src/weighttp.c 2014-04-13 14:05:00.359685093 -0400 | |
+++ weighttp/src/weighttp.c 2014-04-14 20:34:59.470388698 -0400 | |
@@ -234,6 +234,7 @@ int main(int argc, char *argv[]) { | |
uint64_t kbps; | |
char **headers; | |
uint8_t headers_num; | |
+ float full_duration; | |
printf("weighttp - a lightweight and simple webserver benchmarking tool\n\n"); |
NewerOlder