Solved

Unmask URL

Posted on 2004-04-15
2
1,056 Views
Last Modified: 2008-02-26
I have a few different domain names for one site. They are all variations such as domainname.org, domainname.com, domainname.net. Anyways I have two of them setup for fowarding to the one I advertise and typicall use. When the domain name is forwarded it is masked and I want to remove the masking. My site is in PHP with a couple of HMTL pages so I can use just about any language for this. I already have a <base href> tag in my header for the correct domain name but that does not remove the masking. I could optionally setup each of the parked domains with a dummy page that will automatically forward to the one normally used but I'd rather not have to do that. Any thoughts on how I can accomplish this?
0
Comment
Question by:doby48
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 250 total points
ID: 10839814
Masking is achieved using frames, so any frame buster script will do the job.

Stick:
if(top.location != self.location){top.location=self.location;}

in a .js file, then include it on each page with:

<script type="text/javascript" src="yourfile.js"></script>
0
 
LVL 3

Author Comment

by:doby48
ID: 10839872
Thanks, exactly what I was looking for!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now