homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Marketing and Biz Dev / Cloaking
Forum Library, Charter, Moderator: open

Cloaking Forum

hiding URL

Msg#: 4335512 posted 1:54 am on Jul 6, 2011 (gmt 0)


I will ask my question by presenting a situation, hope someone can help me. Totally newbie in HTML and PHP.

main site:

concern url to "hide"

I have a forum where there's an exclusive redirect link/board that is visible for certain group of people only.

Question is, how can I redirect the link to www.mainsite.com/url.php, without having to expose the url? So that for that certain group of people to access the url, they need to go thru the forum. And of course, so as not to expose the URL to people outside the circle (doesnt have access to forum)




WebmasterWorld Senior Member 10+ Year Member

Msg#: 4335512 posted 9:53 pm on Aug 30, 2011 (gmt 0)

Take a look at mod_rewrite. [httpd.apache.org...]


WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4335512 posted 9:55 am on Aug 31, 2011 (gmt 0)

you can use mod_rewrite to internally rewrite urls (usually) based on matching the patterns of various environment variables (requested urls, query strings, hostnames, etc.)
if coded properly the internal rewrite will not expose the rewritten url.

however, you can't really restrict or exclude unwanted visitors by hoping to keep a url secret.
the only control you have is providing the response that is appropriate to the visitor-supplied request headers and cookies for the requested url.

how do you identify or recognize that certain group of people?


WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4335512 posted 10:38 am on Aug 31, 2011 (gmt 0)

Since URLs are published on the web as links, you can't keep a URL secret. However, you can control access over what content that URL returns based on what was in the users HTTP request.

You could look at the referrer (which may be missing or spoofed) or you could look at the cookie data that you dropped on their browser on a previous page view (which could be spoofed, unless you take extra steps) or you could ask for a user name and password.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Marketing and Biz Dev / Cloaking
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved