Advertisement
gonzague

Htaccess WordPress protect

Apr 14th, 2013
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement