article

Paul T2 avatar image
5 Likes"
Paul T2 posted Phil BoBo edited

Submitting Code and How to Avoid Being Blocked

Here on Answers it's often helpful to post code in a question or an answer. When you do so, there are certain steps that should be taken to avoid being blocked by Answers' internal security mechanisms. This article describes the proper way to submit code without arousing suspicion from our threat detection software.

Some of our customers are all too familiar with the screen below after asking a question or adding a comment that includes code.


What is Cloudflare?

Cloudflare is a 3rd party threat detection software specifically designed to detect malicious code/software that may threaten a website. Once you've seen this screen above, there is no way for us to un-block you, as it is an automated 3rd party software. Unfortunately, at this point you have to wait a variable amount of time until Cloudflare decides your IP address is no longer a threat and you will again be allowed access to answers.flexsim.com.

What am I doing wrong?

This warning usually presents itself when code has been directly placed into the body of your post. (see below)


How do I properly format my code?

First paste or type your code into the body of your post. Then, highlight your code and click the Code button in the toolbar.


How can I tell if my code is properly formatted?

Once you've properly formatted your code you will see all of the code you have selected has been placed in a region with a light-gray background.

Remember, if you have multiple blocks of code you can select just the code you want to be grouped together in the first block, hit the code button in the toolbar, and then select the second group of code and again hit the code button to make the second code block, etc.

Sending code through posts is an essential task for many of our customers. If you follow these guidelines you should be able to avoid being blocked and ensure you have uninterrupted service on our answers site. If you feel you have properly entered code and are still being blocked please inform us and include the code and method of formatting you were using when you were blocked and we'll gladly look into it .

codeblockedcloudflareunable to access
blocked2.png (86.2 KiB)
blocked3.png (85.9 KiB)
blocked4.png (89.6 KiB)
blocked5.png (90.7 KiB)
blocked.png (299.4 KiB)
· 1
5 |100000 characters needed characters left characters exceeded

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Thanks for the post @Paul T.

0 Likes 0 ·

Article

Contributors

phil.bobo contributed to this article ben.wilson contributed to this article matt.long contributed to this article paul.t contributed to this article

Related Articles