RSFirewall! doesn't allow me to add HTML, CSS or JavaScript to an article
Sometimes RSFirewall! can be a little too restrictive when it comes to PHP, Javascript and SQL protections. For example, when users attempt to modify the way Joomla! Content displays its articles, RSFirewall! will block the component and consider the changes as a Javascript injection. To avoid this, you can create an exception in the following manner:
- Head to Components > RSFirewall! > Exceptions
- Click on New
- Select Component in the Exception Type dropdown
- Add com_content in the Match textbox
- Set Skip PHP Protections, Skip SQL Protections and Skip Upload Protections to No.
- Set Skip JS Protections to Yes.
- Click on Save or Save & Close.
By setting up the exception described above, RSFirewall! will disregard any potential Javascript injection associated with the com_content component.
Important note: when you save an article that contains <script> or <iframe> tags (without having created an exception similar to the one presented in this article) , RSFirewall! will modify these tags into <s-cript> and <i-frame> instead, thus disabling their functionality by rendering them unrecognisable by web browsers. Please note that, after creating the exception, RSFirewall! will not change the tags to their original state, you will need to do so manually.
5 persons found this article helpful.
You Should Also Read
RSFirewall! doesn't allow me to add HTML, CSS or JavaScript to a module HOT |
How do I prevent the generation of broken HTML tags? |