LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [OT] Stealth URL Redirection

[ILUG] [OT] Stealth URL Redirection

Kae Verens kae.verens at gmail.com
Fri Aug 6 10:52:49 IST 2004


On Thu, 05 Aug 2004 23:29:50 +0200, Brian Foster
<blf at blf.utvinternet.co.uk> wrote:
>   | Date: Thu, 05 Aug 2004 12:46:13 +0100
>   | From: Donncha O Caoimh <donncha at linux.ie>
>   |
>   | It can be done with html frames.  Your site is simply the only frame
>   | [ shown ].  Check http://donncha.ocaoimh.org/ for another one..
> 
>  obfuscates yes, hides no:  I can look at the
>  source to the page/frame and see yer real URL.
>  it is  http://blogs.linux.ie/xeer/   ;-)

you could do it with a bit of misdirection.

in a .htaccess, redirect all 404s to /404.php, and turn off auto-indexing
in 404.php, take the REQUEST_URI, remove the requested domain, and
replace with the real prefix
file_exists() the amended URI. If the file exists, return a 200 OK
message and fpassthru() the file. If not, send a 404 and display your
404 message, or 302 and redirect to the front page.

or something like that

of course, why anyone would have their site hosted at
http://crapdomainname.com/reallyawfulsubdirectory/ourwebsite/ when
they own http://appropriatename.ie/ is well beyond my fragile little
mind.

Kae



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell