Htaccess WordPress protect

gonzague Apr 14th, 2013 554 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteCond %{REQUEST_URI} ^/wp\-login\..*
  3. RewriteCond %{QUERY_STRING} .*byebye=.*
  4. RewriteRule ^.* /wp-admin/ [,R,L]
  5. RewriteCond %{REQUEST_URI} ^/wp\-login\..* [OR]
  6. RewriteCond %{REQUEST_URI} ^/wp\-admin/.*
  7. RewriteCond %{HTTP_COOKIE} !\bbyebye\b
  8. # Mauvais cookie , vas t'en
  9. RewriteRule ^.* [R,L]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand