Title: Editing templates, Javascript, 403 Forbidden Error
Last modified: August 19, 2016

---

# Editing templates, Javascript, 403 Forbidden Error

 *  Resolved [ad1066](https://wordpress.org/support/users/ad1066/)
 * (@ad1066)
 * [16 years ago](https://wordpress.org/support/topic/editing-templates-javascript-403-forbidden-error/)
 * Hey all,
 * I’m a new user, the blog was pretty easy to set up, but I’m running into a bit
   of a snag. I’m editing the templates to make the blog fit with the rest of my
   site, and whenever I add a `<script>` tag (whether it’s embedded Javascript or
   a link to a separate file, I’ve tried both), whenever I try to save the template,
   I get a 403 Forbidden error. Saving the file is no problem otherwise.
 * Any advice or suggestions? The online documentation seemed to indicate that JS
   shouldn’t be a problem.
 * — Ben

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/editing-templates-javascript-403-forbidden-error/#post-1514884)
 * If you’re using the built-in editor at Appearance/Editor, you may be encountering
   a server-side security script (probably mod_security) that is preventing `<script
   >` tags from being injected into files via PHP. It’s certainly a bit overkill,
   but it is a security measure nonetheless.
 * You may want to contact your hosting provider or use an [FTP client](http://codex.wordpress.org/FTP_Clients)
   and a [plain text editor](http://codex.wordpress.org/Glossary#Text_editor) to
   edit the file.
 *  Thread Starter [ad1066](https://wordpress.org/support/users/ad1066/)
 * (@ad1066)
 * [16 years ago](https://wordpress.org/support/topic/editing-templates-javascript-403-forbidden-error/#post-1514895)
 * Woo hoo! That’s got it working, thanks !
 * — Ben
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [16 years ago](https://wordpress.org/support/topic/editing-templates-javascript-403-forbidden-error/#post-1514898)
 * You’re welcome!

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

The topic ‘Editing templates, Javascript, 403 Forbidden Error’ is closed to new 
replies.

## Tags

 * [editing](https://wordpress.org/support/topic-tag/editing/)
 * [forbidden](https://wordpress.org/support/topic-tag/forbidden/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [templates](https://wordpress.org/support/topic-tag/templates/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/editing-templates-javascript-403-forbidden-error/#post-1514898)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
