Created
July 12, 2012 22:00
-
-
Save qharlie/3101369 to your computer and use it in GitHub Desktop.
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
(defn write-htaccess [ips] | |
(spit "/home/q/htaccess" | |
(join "\n" (concat | |
'("order allow, deny") | |
(map (partial format "deny from %s") ips) | |
'("allow from all"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment