Copy
CTRL+C
Paste
# Block User Agents | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} 360spider [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} 404checker [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} 404enemy [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} 80legs [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} abonti [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} aboundex [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} aboundexbot [NC,OR] | |
RewriteCond %{HTTP_USER_AGENT} acunetix [NC,OR] |
$myWindowsID = [System.Security.Principal.WindowsIdentity]::GetCurrent(); | |
$myWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($myWindowsID); | |
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator; | |
if ($myWindowsPrincipal.IsInRole($adminRole)) | |
{ | |
$Host.UI.RawUI.WindowTitle = $myInvocation.MyCommand.Definition + "(Elevated)"; | |
$Host.UI.RawUI.BackgroundColor = "DarkBlue"; | |
Clear-Host; | |
} | |
else { |
# Proxy Requests | |
# public_html/myapp/.htaccess | |
DirectoryIndex disabled | |
RewriteEngine On | |
RewriteRule ^$ http://127.0.0.1:3000/ [P,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P,L] | |
################################################## |
RewriteRule "^.well-known/acme-challenge" - [L] |
cat /home/*/access-logs/* |awk '{print $1}' |sort |uniq -c |sort -n |tail | |
/opt/coldfusion11/cfusion |
<?php | |
// Initialize resource | |
$curl = curl_init(); | |
// Set options | |
curl_setopt($curl, CURLOPT_URL, 'http://example.com'); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); | |
// Open connection |