Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8017033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:43:03+00:00 2026-06-04T20:43:03+00:00

I am writing a PHP script that takes javascript code and writes it out

  • 0

I am writing a PHP script that takes javascript code and writes it out in someones browser, works great, but I want the javascript to be able to be written by anyone, so I need to validate that certain things are not added to the javascript code like redirects and alert boxes.

What I’m asking is simply for suggestions for things to be censored out of the javascript, I have a fairly extensive list right now but I just want to make sure there is not anything obvious, or extremely obscure I have missed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:43:05+00:00Added an answer on June 4, 2026 at 8:43 pm

    In all honesty, working with PHP and JavaScript can be a bit of hell. Preventing dangerous JavaScript isn’t 100% foolproof, as some can just load their own JavaScript code from a different domain and just do what they please.

    However, you mention that you have a “honeypot” of sorts?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a php script that takes some c code and tests it against
I want to run a shell script in php, but this shell script takes
I'm writing a php script that needs to load a 2D array into a
I'm writing a PHP script that downloads a series of generated files (using wget
I'm writing a PHP script that builds an SQL query by concatenating the string
I'm currently re-writing one of my old PHP scripts so that the code is
Im writing a php script to compare the similarity of 2 strings. This works
I'm writing a PHP script to scrape data from the web. End-result, I want
I'm currently writing a PHP script that 3rd party clients will be able to
I'm writing a PHP script that accesses two different data objects - one is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.