SHARE
TWEET

Htaccess WordPress protect

gonzague Apr 14th, 2013 505 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/ [cookie=byebye:true:gonzague.me:3600:/,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 ^.* http://www.youtube.com/watch?v=oHg5SJYRHA0 [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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top