Protecting your HTML pages

This forum is meant for discussing the creation of software for iPhone and iPod touch.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Protecting your HTML pages

Postby lacarrye » Fri Feb 18, 2011 6:00 pm

Any idea how to prevent that your Iphone web app be visited without restriction?? I'd like to charge for it. Example: Client pay a subscription and then access to the web links. Does it work like that??

I will appreciate any help. I'd like to host my web apps, but I want to charge for them somehow.

Thanks, Javier
New Member
Posts: 2
Joined: Fri Feb 18, 2011 5:55 pm

Postby time-killer-games » Wed Feb 23, 2011 10:22 pm

This is how most software developers do it, just post a paypal thingy on your webpage. DO NOT post the link to your game. Send it by email to whoever buy's your game's playing liseance.
User avatar
Expert Member
Posts: 400
Joined: Fri Dec 24, 2010 6:10 pm
Location: Virginia Beach, VA

Postby Gumbro » Thu Feb 24, 2011 10:06 pm

Just be aware that if your game resides on a public server directory, search engine bots will find it and make it publicly available. You might want to password protect the directory, or use a login script.
User avatar
Active Member
Posts: 88
Joined: Thu Oct 05, 2006 7:33 pm

Postby jrlgames » Sun Apr 24, 2011 6:46 pm

Hi lacarrye!

If you want to protect your game from being archived by search engine, do the following:

1. Open/Edit each HTML file from your game
2. In the beginning of your HTML file (between the <head> </head>), enter the following code

<meta http-equiv="Pragma" content="no-cache">
<meta name="robots" content="noarchive">
<meta name="robots" content="noindex">

For the password protect of your game (like you want user to pay to play), I recommand you AuthPro, wich include high quality password protection for your page and directory, and it include a fully integrated pay plateform, and his a great automation script, FREE and no installation needed.

Hope it help!


Or after you've added the above code in each HEAD TAG of your HTML file of your game, OPEN/EDIT the index.html file and just after the META TAG, add the following code

<SCRIPT language="JavaScript">
var password;
password=prompt('Please enter your password to view this page!','');
if (password==pass1){alert('Password Correct! Click OK to enter!');}
JRL1983 Studios
Premium Casual Games
User avatar
Posts: 20
Joined: Wed May 19, 2010 8:12 pm
Location: Sorel-Tracy, Quebec (CA)

Return to Creating Software for iPhone and iPod Touch

Who is online

Users browsing this forum: No registered users and 1 guest