Title: wp-admin blocked by rogue code
Last modified: August 21, 2016

---

# wp-admin blocked by rogue code

 *  [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/)
 * My wp-admin is inaccessible due to a code that has been placed somewhere in the
   theme functions file in the backend of the site. I have tried accessing the FTP
   for the site using CyberDuck however I really need to access the actual back 
   end of the wordpress site. The code is somewhere in the functions-file page
 * << – add_filter( ‘widget_text’, ‘shortcode_unautop’); add_filter( ‘widget_text’,‘
   do_shortcode’); >>
 * Is there a way to access the actual page and not just access the FTP for this
   site? I know that if I could access the backend I can find this code and remove
   it.
 * the WordPress site is [http://www.deddog.com](http://www.deddog.com) You can 
   see the url blockage if you type in deddog.com/wp-admin

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

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721384)
 * Can you get in here?
 * [http://www.deddog.com/wp-login.php](http://www.deddog.com/wp-login.php)
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721419)
 * I cannot. I’m being told to enable cookies for my browser (Chrome). Which I have
   already done. I’m assuming this is another issue however it may be from the rogue
   code.
 * ***cookies are enabled. attempts to sign in request to enable cookies.
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721421)
 * OK, you’re going to have to login using FTP then. Simply navigate to wp-content/
   your-theme/ then download and edit functions.php, then re-upload.
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721427)
 * Ok thanks.
 * This is using CyberDuck as the FTP device, correct?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721429)
 * Sure, it’s not my favourite but it’ll do 🙂
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721431)
 * Okay, I’ve found and deleted the rogue code. And saved the updated file. Can 
   you give me the steps to re-upload this revised file please?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721432)
 * Select it in CyberDuck and hit upload. You could probably drag and drop it into
   the directory on the remote server.
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721438)
 * Will I need to delete the old file?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721440)
 * It should overwrite it, probably asking you if that’s OK if before it does.
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721472)
 * I removed the code and the file was overwritten.
 * New error page has appeared. Please see < [http://www.deddog.com](http://www.deddog.com)
   >
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721475)
 * I’m thinking that functions.php file had some theme specific functions, and you
   removed them. Can you upload a clean functions.php file from your downloaded 
   them?
 *  Thread Starter [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * (@oliverathabasca)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721497)
 * OOPS.
 * Sorry for the time delay, I’m working from Indonesia. Only functions file I can
   see is the one that is replaced. Which is the exact replica minus one line of
   code.
 * Can this be fixed?

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

The topic ‘wp-admin blocked by rogue code’ is closed to new replies.

## Tags

 * [Backend](https://wordpress.org/support/topic-tag/backend/)
 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [tripadvisor](https://wordpress.org/support/topic-tag/tripadvisor/)
 * [troubleshoot](https://wordpress.org/support/topic-tag/troubleshoot/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 2 participants
 * Last reply from: [oliver.athabasca](https://wordpress.org/support/users/oliverathabasca/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/wp-admin-blocked-by-rogue-code/#post-4721497)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
