Last active
August 29, 2015 13:56
-
-
Save badcrc/8977386 to your computer and use it in GitHub Desktop.
Revisions
-
badcrc renamed this gist
May 6, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
badcrc revised this gist
Feb 27, 2014 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,14 @@ <Files wp-login.php> Order deny,allow Deny from all #Single IP SetEnvIF X-Forwarded-For "x.x.x.x" AllowIP #IP Range (example for a XXX.XXX.0.0/16) # http://stackoverflow.com/questions/17967294/how-can-i-make-a-regular-expression-for-ip-address-with-subnetmask SetEnvIF X-Forwarded-For "^XXX\.XXX\.(?:[0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.(?:[1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-4])$" AllowIP Allow from env=AllowIP </Files> -
badcrc created this gist
Feb 13, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <Files wp-login.php> Order deny,allow Deny from all SetEnvIF X-Forwarded-For "x.x.x.x" AllowIP Allow from env=AllowIP </Files>