Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Blackhat

[bsa_pro_ad_space id=2]
#745426
Anonymous
Inactive

How to find out if someone has put your site in a frame and how to prevent someone from putting your site in a frame. What to do to get the frames taken off Google.”

One of the most irritating things that you can discover is that someone has put your site – or some of its pages – in frames. Being put in frames can take all of your hard work designing and search engine optimizing, and make it worth absolutely nothing when it comes to Google SERPs.

The first thing you’ll want to do – for both prevention and treatment of being put in a frame – is to add frame-breaking script to your pages. There are a number from which you can choose.

The following is a frame breaker that should be inserted between the head tags.

” < script type= text/javascript”>
if (parent.frames.length > 0)
{parent.location.href=self.document.location}

If you’d rather provide your site visitor with the choice whether or not to continue within the frame, you can give an optional frame breaking button. It is as follows:

< form action = "dummyvalue" >
< input type= "button" value="Breakout of Frame"
name=”button” onclick= “breakout_of_frame()” />

Itay