Title: wrong code
Last modified: August 22, 2016

---

# wrong code

 *  Resolved [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/)
 * i have code `# BRUTE FORCE LOGIN PAGE PROTECTION
    # Protects the Login page from
   SpamBots, HackerBots & Proxies # that use Server Protocol HTTP/1.0 or a blank
   User Agent RewriteCond %{REQUEST_URI} ^(/wp-login\.php|.*wp-login\.php.*)$ RewriteCond%{
   HTTP_USER_AGENT} ^$ [OR] RewriteCond %{THE_REQUEST} HTTP/1\.0$ [OR] RewriteCond%{
   SERVER_PROTOCOL} HTTP/1\.0$ RewriteRule ^(.*)$ – [F,L]`
 * in
    CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/
   REDIRECT CODE: i want to clear it as it is in by mistake but i just get 403 when
   removing and saving. How can i remove this so that i prevent the 403, at the 
   moment i can’t see how to remove
 * log says
    HTTP_REFERER: `http://www.xxxxxxx.co.uk/wp-admin/admin.php?page=bulletproof-
   security/admin/core/options.php` `REQUEST_URI: /wp-admin/options.php`
 * So do i need a bypass rule? i know its the code causing it but can’t clear it(
   save after removal)
 * [https://wordpress.org/plugins/bulletproof-security/](https://wordpress.org/plugins/bulletproof-security/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/#post-5539174)
 * [deleted duplicate WP thread post]
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/#post-5539175)
 * Sounds like you need to remove that code manually. Use FTP or your web host control
   panel file manager and delete that code from your root htaccess file. Or of course
   you can delete your root htaccess file, correct the invalid Custom Code, save
   your corrections and activate root folder BulletProof Mode again.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/#post-5539202)
 * Tried both but still get the problem, puzzled
    Deleted Htaccess, uploaded one
   from another working site with bps and no brute force code. Went to remove from
   the custom code box but still 403 when i try to save it
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/#post-5539204)
 * Well i have now overcome this, basically i copied site with “duplicator” put 
   on localhost, edited files, then re copied back to live site, not the most ideal
   way i guess but the problem is now fixed FEW!!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wrong code’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mrppp](https://wordpress.org/support/users/mrppp/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/wrong-code-4/#post-5539204)
 * Status: resolved