javascript - How to allow IFrame to load pages only from specified domain? -



javascript - How to allow IFrame to load pages only from specified domain? -

for example, i'm developer of foo.com website. on 1 of pages i've iframe page bar.com. want page in iframe load pages bar.com (by clicking links), restrict next links domains (clicking link in iframe ponts evil.com or whatever should display error message).

can somehow? may help of javascript?

javascript html security iframe

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -