Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 10-31-2011, 01:43 PM
DigitalAlien's Avatar
DigitalAlien DigitalAlien is offline
v7n Mentor
 
Join Date: 10-11-09
Posts: 2,301
iTrader: 0 / 0%
Website Only Open in iFrame

I need to make it so that website1.com only will open if it is being shown through an iFrame at website2.com. Does anyone know how to do this or if it's possible?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 10-31-2011, 05:17 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,710
iTrader: 5 / 100%
See if you can make something from the info here: 11.7. Is there a way to prevent getting framed?
 
Reply With Quote
  #3  
Old 11-10-2011, 02:27 AM
JohnnyS's Avatar
JohnnyS JohnnyS is offline
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
if you're using PHP, you can check the $_SERVER['HTTP_REFERER'] inside website1.com pages. test if the value is website2.com in it
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Doesn't Allow to Open Antivirus Website webexpertz Tech Talk 24 06-11-2011 10:27 AM
open iFrame link in a new tab in browser! HeLP! basslion Coding Forum 5 07-02-2009 10:04 PM
wht is the quickest way to get website listed on DMOZ (Open Directory Project)? sinc Web Directory Issues 15 03-31-2009 12:56 AM
Website Submission to Open Directory Project - DMOZ PaulC Marketing Forum 2 03-18-2005 05:35 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:13 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC