Download ArticleDownload Article

Adding browser games to your website gives visitors a reason to spend more time on your site and come back the next day. Just make sure you choose a game from a trusted source that has given permission for people to copy it.

Method 1
Method 1 of 2:

Embedding Games

Download Article
  1. How.com.vn English: Step 1 Understand embedding.
    An embedded game looks like part of your web page, but is still hosted on the original website, not using your bandwidth. If the original website takes down the game, it will disappear from your website as well.
    • Embedding is fairly safe, but malicious content may alter your website appearance, open pop-up windows, or run plugins.[1] Embed content from trustworthy sites only, or learn how to alter the HTML to limit its access.[2]
  2. How.com.vn English: Step 2 Find the game you'd like on your website.
    Some game websites display the HTML used to embed the game. This makes it as easy as copy-paste. Here are a few places that let you do this:
    • Fog.com
    • Kongregate.com/games_for_your_site (sponsored games only)
    • If the game you want to embed is not on any of these sites, contact the creators of the game and ask for permission to embed the game.
    Advertisement
  3. How.com.vn English: Step 3 Copy the embed code.
    On the web page hosting the game, look for a snippet of HTML code labeled "embed" or "share." Here are specific instructions for the examples above:
    • Bored.com: Click on a game. Click the "Share" tab underneath the game, then copy the second code snippet, labeled "Embed."
    • Fog.com: Click on a game. Copy the snippet labeled "Embed this game," underneath the game description.
    • Kongregate sponsored games: Visit the "games for your site" page. Copy the "Embed" code next to the game you want to host.
    • Warning — this should be HTML code inside an <iframe>, <embed>, or <object> tag. If the code uses a different tag, it's probably just a link to the website and not the full game.
  4. How.com.vn English: Step 4 Paste the code into the body of your web page.
    Adding the game to your site is as simple as pasting that embed code. Place it in between the <body> tags of your HTML document, wherever you would like the game to be displayed.
  5. How.com.vn English: Step 5 Follow the terms of service.
    Most game websites have a terms of service for other websites embedding their games. If you do not follow the terms of service, the website may remove the game from your site. Here are a few typical requirements:[3][4]
    • No changing the appearance or content inside the embedded game's boundaries.
    • No claiming ownership of the game or charging a fee to play it.
    • No hosting the game on a site with illegal or obscene content.
  6. Advertisement
Method 2
Method 2 of 2:

Hosting Games

Download Article
  1. How.com.vn English: Step 1 Know the risks of hosting.
    Hosting a game yourself requires downloading the game file, then uploading it back onto your own website. Downloaded files may contain viruses and malware. Learn what to avoid and install antivirus software before you begin. Scanning each file before opening it is recommended.
    • Users playing the game will contribute to your bandwidth.
  2. How.com.vn English: Step 2 Find a game site that allows downloads.
    Only select sites allow visitors to download their games, and not all of them are trustworthy. Listed below are a few sites that generally offer safe downloads — although there is still the chance of a virus, since the games are made by many different people.
    • Crazy Monkey Games (sponsored games only)
    • Armor Games] (select games only)
    • FreeGameJungle (select games only)
    • Bored.com
    • If you can't find a download link for the game you want, contact the game's creators directly to ask for permission.
  3. How.com.vn English: Step 3 Download the game.
    Most sites limit downloads to trusted games, and have you visit a special page to browse the download links. Others let you download any game from the individual game page.
    • Each of the links above takes you directly to a download page. Just click the download link next to each game, then double-click the compressed file to get the actual game files.
    • On Bored.com, visit the game page, click the Share tab underneath the game, then click the download link underneath the embed HTML code.
  4. How.com.vn English: Step 4 Upload the game file to your website directory.
    Most browser games are made with Flash, so the file extension is .swf. Some games are made in HTML or, rarely, in other formats, but make sure you recognize the file extension before uploading it.
    • If you are using a free web hosting service such as Wordpress, you may need to install a plugin first in order to host the game. Look for a Flash player plugin to host a Flash game.
    • Some web hosts do not allow .swf files or other game files. In this case, upload the file to a free content hosting website, then link to it using an <embed> tag as described below.
  5. How.com.vn English: Step 5 Link to the game.
    After uploading the game, you can link to the file just as you would any other page on your website. This will take the visitor to a new page to play the game, still inside your domain.
  6. How.com.vn English: Step 6 Embed the game instead.
    If you would rather place the game inside an ordinary HTML page next to other content, you can use an <embed>, <iframe>, or <object> tag:
    • For a very basic embedding of a Flash game, write <embed src="InsertGameURL" type="application/x-shockwave-flash"></embed>. There are many ways to modify this tag. Follow the embed method above to find examples to learn from.
    • Some downloaded game files will come with a text document that includes embedding code to copy-paste to your site. Make sure you understand what the code does before uploading. Change the link to the file you uploaded instead of the original website.
  7. How.com.vn English: Step 7 Follow terms of service.
    In most cases, you are not allowed to charge visitors money to play the game. Do not claim you made the game, and do not copy-paste the game description without permission. Some websites may have additional restrictions.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I get rid of a game on my website?
    How.com.vn English: Community Answer
    Community Answer
    Delete all of the embedded code or the HTML code that you inserted when you added the game to your website.
  • Question
    Why can't we charge money?
    How.com.vn English: Community Answer
    Community Answer
    Because they said "for free".
  • Question
    Can I do this on Wix?
    How.com.vn English: Community Answer
    Community Answer
    Yes. Just use the HTML tool and paste the frame content into the box.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • If you want to attract visitors besides friends and family, host a variety of games.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 32 people, some anonymous, worked to edit and improve it over time. This article has been viewed 211,057 times.
      How helpful is this?
      Co-authors: 32
      Updated: September 8, 2023
      Views: 211,057
      Thanks to all authors for creating a page that has been read 211,057 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement