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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Redirect botnet scans to Apache 403 | |
# | |
# WordPress login/admin pages | |
RewriteCond %{REQUEST_URI} ^(.*)/wp-admin$ [OR] | |
RewriteCond %{REQUEST_URI} ^(.*)/wp-login\.php$ [OR] | |
# Drupal pages | |
RewriteCond %{QUERY_STRING} ^q=(node/add|user/register)$ [OR] |
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
on alfred_script(q) | |
-- Copies URL of the current tab to the clipboard | |
-- Requires Alfred PowerPack | |
tell application "Safari" | |
set theURL to URL of front document | |
set the clipboard to theURL as string | |
end tell | |
end alfred_script |