URL Cloaking

They have: 2 posts

Joined: Oct 2003

Hello. I have a webpage that I would like to cloak the url. Waht I want is to have the visible url be http://www.yourdomain.com and show none of the pages, yourdomain.com/page1.html, yourdomain.com/page2.html, etc. I know peopkle talk about frames, but this doesn't appear to work for me (as I am probably doing something wrong). In theory it makes sense that if you have a split frame (top/bottom) and you have the page open in the top and redirect to the bottom. I need to know how to do this and also each link that I open I wantto open into the bottom page, yet display only the yourdomain.com in the address bar. Thanks
Jeff

nicora's picture

He has: 267 posts

Joined: Nov 2001

You can "cloak" URL's using frames, but then all the user needs to do is right-click to get the page name. The only other way I can think of would need server-side programming. You could use javascript to pass form variables to your default page, and according to which variable, send them to the respective page. Kind of like switch box, but with form variables. But even doing that would leave you with: http://www.yourdomain.com/default.htm

You could convert all CGI variables to an attributes scope and replace the URL delemiters to "/"'s

Original : yourdomain.com/default.htm?f=1000&article=133

New : yourdomain.com/default.htm/f/1000/article/133

I used to do this, but don't even bother with it anymore.

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Why do you want to do this?

They have: 2 posts

Joined: Oct 2003

I have some people attaching to my site and taking my graphics. I would like this to stop, so what I have done is stop right clicking on the page and I would like to keep the url set to domain.com/

Thanks

nicora's picture

He has: 267 posts

Joined: Nov 2001

I think The Webmistress is asking this because cloaking your URL in of itself won't help you accomplish anything. Unfotunatly, there is no way to keep people from taking your images. Disabling right click's may make it more difficult, but ultimatly, all they need to do is take a screenshot of your site and import it into photoshop, and tada! they have any graphic you have done.

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Or you can drag the image/photo into another browser window and you can then right click it & save it!!

nicora's picture

He has: 267 posts

Joined: Nov 2001

LMAO!! Yep, or you can disable JavaScript and right click anyways!!

I never understood no right-click scripts, anyone with any web-knowlege can still steal images.

Busy's picture

He has: 6,151 posts

Joined: May 2001

to stop people linking to your images (hot linking) etc use a .htaccess file
If people are linking to files that you don't want linked to, use server side and include the files, can also change the files name very quickly and use extension of your choice (extn set via htaccess)

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Its really pointless what you are trying to do because on some browsers you can disable javascript.

Besides, if they really wanted it, they can view source to find it, look around the forums.

The only way for people not to get anything from your site would be to not put it up in the first place.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.