In html , how to fix script code

150 views Asked by At

I have a problem with the scripts I made an a program to make code in the internet but when i put the script command in the text box and submit it give an erros and I can submit any type of code but script i can't Im using godady hosting can anyone help me ?

i use this to write my code online from anywhere and i submit my code using php the php process it and make a new file with the name you choose when I write any code like <html> <head></head><body><h1>hi</h1></body></html> that code don't give any problem but when i put <html> <head> <script> </script> </head><body><h1>hi</h1></body></html> that give me that error Not Acceptable An appropriate representation of the requested resource /code.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

1

There are 1 answers

2
Brad On BEST ANSWER

Based on your note in the comments, your web host is likely running some sort of security extension to help prevent against attacks, such as XSS attacks. These server security extensions look for likes like <script> tags in submitted data, and will block them. This is good, because if your code is doing what I think it's doing, you're allowing anyone in the world to take over your web hosting account.

You may be able to turn that security off through configuration, or by nicely asking your host to turn it off for you. Since you're on Go Daddy, you're probably a bit more restricted. A VPS gives you more control.