cross frame security

whueylin

Born

Posts: 3

3+ Months Ago

I have a page using iframe to get a page abc.htm
Is there anyway I can prevent other people from using the same method on their website by using iframe to get my page abc.htm?
I had tried searching around, and this microsoft link seems to give some clue on it but I'm still not sure how to make it.
http://msdn.microsoft.com/library/defau ... cument.asp

Any advice is appreciated. Thank you.

Managedlinks

Proficient

Posts: 294

3+ Months Ago

if I get your question you want to stop people loading your page and pretending it is theirs?

In this case the best bet is to server side script it and test the referrer. if the referre is not valid then serve a warning or blank page or something

you can also add a frame breaker to your page.

If this identifies itself as being in a frame and breaks out

whueylin

Born

Posts: 3

3+ Months Ago

First of all, thank you very much for your reply.
Yes, you got my question right.

I am aware that for Apache web server, we are able to use the .htaccess to overcome this problem like this: