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
lacarrye
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
time-killer-games
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
Gumbro
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.

www.authpro.com

Hope it help!

*EDIT*

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;
var pass1="ENTER_YOUR_PASSWORD_HERE";
password=prompt('Please enter your password to view this page!','');
if (password==pass1){alert('Password Correct! Click OK to enter!');}
else{window.location="ENTER_THE_ERROR_URL_HERE";}
//-->
</SCRIPT>
JRL1983 Studios
http://pages.videotron.com/jrl1983
Premium Casual Games
User avatar
jrlgames
Member
 
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

cron