[PLUGIN] iframe filter

Post your completed addons to share with the community

Post » Sun Feb 26, 2012 8:01 am

Check if current page is in an iframe or not
iframe filter, plugin and sample capx are included.
Demo-
User could try to embed this page into an iframe. The URL of main page will be redirected to this page back.
Last edited by rexrainbow on Tue Apr 05, 2016 5:44 pm, edited 3 times in total.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sun Feb 26, 2012 9:01 am

Nice plugin !
(And you are very fast to integrate all this in a nice package, you know ! )
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sun Feb 26, 2012 12:22 pm

Update:

Change category to "Web".
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Mar 19, 2012 12:20 am

Update:

Add version to 0.8
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sun Apr 03, 2016 10:14 am

Hi

Can I use this plugin with the newer C2 version? My game is in an iframe but in the same domain and I don't want the game can be open in iframes in others domains, this plugin will work for me?
B
4
Posts: 96
Reputation: 392

Post » Sun Apr 03, 2016 5:19 pm

@Braus

Here is a sample capx, the "Condition:Is acceptable" will return true if current app is not in any iframe ( I had set property "Busting all iframes" to "Yes" ).

The exported html5 page is here, you might try open this page directly, or try to put it into a iframe ( Pode has a iframe plugin ), and see the result.

But this is not a perfect solution, because that the game has been downloaded already.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sun Apr 03, 2016 5:33 pm

Nice! But I can use in my own iframe? To solve the previous downloads issue I can use any command to clean the cache or something else?
B
4
Posts: 96
Reputation: 392

Post » Sun Apr 03, 2016 5:41 pm

@Braus

Call "Action:Append" to add your url of acceptable page.
About download issue, I guess that there is not command to force cleaning cache.
But it is not my consideration, it is better to ban the player before download the game. (I don't know how to do)
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sun Apr 03, 2016 7:01 pm

@rexrainbow: Thanks. Even using an iframe I need to set "Busting all iframes" to yes?

Nedd I to include the append action the URL (h t t p: / / w w w . domain . com") or the entire path (h t t p : / / w w w . domain . com / folder / page)?
B
4
Posts: 96
Reputation: 392

Post » Mon Apr 04, 2016 5:19 am

@Braus

I had updated the document of this plugin in this page.
Property "Busting all iframes" had been removed.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Next

Return to Completed Addons

Who is online

Users browsing this forum: gamecorpstudio and 2 guests