|
If you buy a domain name at GoDaddy and host it elsewhere, they make it easy to use a frame to "redirect" to the other hosting and "cloak" the domain name.
Your frame source can be any type of document the client browser will display. PHP is fine. You can configure your server to expose PHP pages as having an html extension to the outside world if you'd like to ... but you can just point at a PHP file without having to pretend it's a static html.
This really isn't a very effective way to hide a URL, though. A person can view the page source to find the entry point through the frame. If they have web developer add-ons, they can click an element on the page and get its URL. But, it'll hinder people who aren't tech savvy.
You may want to create the page dynamically, in javascript. You could decode a string that's encoded in base 64 with the URL and build the frame around it using document.write in the page load event. That still only gives you limited protection, but it will keep people with a little bit of tech knowledge out. You're going to find a point of diminishing returns.
You should also look into a service called "ImgRed.com" ... I have an article on my site about blocking them. The more difficult you make things for your viewers, the more likely people are to use a side-linking service to host copies of your images instead of linking to pages on your site. That would be a disaster, taking any control you have on the web out of your hands, and needing a lawyer to get it back for you. While you experiment with new ideas, you should consider their implications and plan for stuff like that.
ImgRed finally built an opt-out feature, so you may want to head over there and tell them never to host images from your site. There are other services like them, though.
|