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 8074461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:39:21+00:00 2026-06-05T14:39:21+00:00

I have developed a site that allows the users to embed widgets into their

  • 0

I have developed a site that allows the users to embed widgets into their profile.

These widgets allow html and support anything from youtube embed codes (iframe) to Google Analytics code (JavaScript).

I have recently learned about hackers using iframes and JavaScript to exploit site logins and ftp access.

Is there some sort of php solution that I can integrate into my site to avoid these types of hacks while still allowing users to embed HTML widgets into their profile?

  • 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-05T14:39:22+00:00Added an answer on June 5, 2026 at 2:39 pm

    No.

    There is no way that you can mechanically distinguish between all “good” JavaScript (e.g, Google Analytics) and “bad” JavaScript. (Without either whitelisting scripts that you approve of, which will inevitably not allow everything that users want, or blacklisting scripts that are inappropriate, which will inevitably be a game of whack-a-mole.)

    You will need to stop allowing users to inject arbitrary HTML into your site.

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

Sidebar

Related Questions

Hey guys, I have developed a small site that i would like to embed
I have developed a web site that requires user registration and authentication for some
I have a asp.net web site that was developed on the .Net Framework v2
I have developed a small web app. This app allows users to upload images.
I am working on a site that will allow users to create an account.
I am going to develop a site that allow advertisers to post their products/services.
I'd like to add some functionality to a site that would allow users to
We will develop a web site that will have some free services and we
I have a problem in a site that I am trying to develop Sometimes
I have developed a site with ASP.NET MVC 1, and now I'm trying to

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.