Defensive coding for facebook apps using CI?

I'm thinking of building a Facebook app using CodeIgniter; I did experiment a long time ago with some libraries and code I found from searching the forums; I understand the API recently changed.

One thing I am concerned about is security and I'm wondering the best defensive coding practices for the following issues (as I understand them to be).

1. Ensuring the request comes from * AND/OR your website only.
I believe the RPG apps use this method to reduce the impact of bots that farm RPG points
One thing that struck me is that this is something I would like to implement in non-facebook apps too; one needs to make sure the request comes from your website.

Thus, is there a way to do this currently with CI?

2. Reducing Cross Site Scripting, Session Hijacking
This is related to the above.

Are there other facebook defensive coding practices one needs to be aware of, or CI caters for out-of-the-box?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.