Click here to get back home

Controlling access via specific referrer (htaccess)?

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Controlling access via specific referrer (htaccess)? Neil 09-27-2008
Get Chitika Premium
Posted by Neil on September 27, 2008, 4:15 am
Please log in for more thread options


Hi,
I have a gallery installed on an ecommerce site purely as a secondary
feature. The thing is I don't want folk to be able to bookmark the gallery
for future visits and miss out on them visiting the ecommerce site (store).
Also I fear search engines may drive traffic to the gallery (which is no bad
thing) but they may not visit the store area. There are menu links to the
gallery on the store menu and to the store on the gallery menu.

What I want to achieve is:

a. Visitor visits www.example.com/gallery/ from OUTWITH the domain
(example.com), they are redirected to www.example.com/

b. Visitor already browsing www.example.com/* may have unrestricted
access to www.example.com/gallery/*

I'm sure from what I've seen this can be managed through .htaccess, but it's
way beyond my knowledge of htaccess.

Many thanks for any advice.

Neil




Posted by Jerry Stuckle on September 27, 2008, 8:39 am
Please log in for more thread options


Neil wrote:
> Hi,
> I have a gallery installed on an ecommerce site purely as a secondary
> feature. The thing is I don't want folk to be able to bookmark the gallery
> for future visits and miss out on them visiting the ecommerce site (store).
> Also I fear search engines may drive traffic to the gallery (which is no bad
> thing) but they may not visit the store area. There are menu links to the
> gallery on the store menu and to the store on the gallery menu.
>
> What I want to achieve is:
>
> a. Visitor visits www.example.com/gallery/ from OUTWITH the domain
> (example.com), they are redirected to www.example.com/
>
> b. Visitor already browsing www.example.com/* may have unrestricted
> access to www.example.com/gallery/*
>
> I'm sure from what I've seen this can be managed through .htaccess, but it's
> way beyond my knowledge of htaccess.
>
> Many thanks for any advice.
>
> Neil
>
>
>
>

You can't do it in .htaccess. That would depend on the HTTP_REFERER
being present and accurate, which it is not.

More reliable would be to use cookies. Virtually any server-side
language can do it.

But I would recommend not doing it. If I saw a site do that, it would
be the last time I visited the site.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Neil on September 27, 2008, 9:08 am
Please log in for more thread options



> Neil wrote:
>> Hi,
>> I have a gallery installed on an ecommerce site purely as a secondary
>> feature. The thing is I don't want folk to be able to bookmark the
>> gallery for future visits and miss out on them visiting the ecommerce
>> site (store). Also I fear search engines may drive traffic to the gallery
>> (which is no bad thing) but they may not visit the store area. There are
>> menu links to the gallery on the store menu and to the store on the
>> gallery menu.
>>
>> What I want to achieve is:
>>
>> a. Visitor visits www.example.com/gallery/ from OUTWITH the domain
>> (example.com), they are redirected to www.example.com/
>>
>> b. Visitor already browsing www.example.com/* may have unrestricted
>> access to www.example.com/gallery/*
>>
>> I'm sure from what I've seen this can be managed through .htaccess, but
>> it's way beyond my knowledge of htaccess.
>>
>> Many thanks for any advice.
>>
>
> You can't do it in .htaccess. That would depend on the HTTP_REFERER being
> present and accurate, which it is not.

OK.
>
> More reliable would be to use cookies. Virtually any server-side language
> can do it.

I just thought there might be a straight forward method of doing it in
htaccess.
>
> But I would recommend not doing it. If I saw a site do that, it would be
> the last time I visited the site.

Personally I don't see anything wrong with it. This sort of thing happens
all the time in bricks and mortar shops/stores. Features of general and
incidental interest are located at the back of the store. Typically in gift
shops, I've even seen them in a different room to the back of the store -
very often displaying local artwork - to encourage the customer/browser to
come in and walk through the store to get to it. In this case it would only
be necessary for the visitor to visit a single page within the store, to be
able to click on the gallery button.

Perhaps it's something for me to ponder - thanks for the advice.

Neil








Posted by Jerry Stuckle on September 27, 2008, 9:41 am
Please log in for more thread options


Neil wrote:
>> Neil wrote:
>>> Hi,
>>> I have a gallery installed on an ecommerce site purely as a secondary
>>> feature. The thing is I don't want folk to be able to bookmark the
>>> gallery for future visits and miss out on them visiting the ecommerce
>>> site (store). Also I fear search engines may drive traffic to the gallery
>>> (which is no bad thing) but they may not visit the store area. There are
>>> menu links to the gallery on the store menu and to the store on the
>>> gallery menu.
>>>
>>> What I want to achieve is:
>>>
>>> a. Visitor visits www.example.com/gallery/ from OUTWITH the domain
>>> (example.com), they are redirected to www.example.com/
>>>
>>> b. Visitor already browsing www.example.com/* may have unrestricted
>>> access to www.example.com/gallery/*
>>>
>>> I'm sure from what I've seen this can be managed through .htaccess, but
>>> it's way beyond my knowledge of htaccess.
>>>
>>> Many thanks for any advice.
>>>
>> You can't do it in .htaccess. That would depend on the HTTP_REFERER being
>> present and accurate, which it is not.
>
> OK.
>> More reliable would be to use cookies. Virtually any server-side language
>> can do it.
>
> I just thought there might be a straight forward method of doing it in
> htaccess.
>> But I would recommend not doing it. If I saw a site do that, it would be
>> the last time I visited the site.
>
> Personally I don't see anything wrong with it. This sort of thing happens
> all the time in bricks and mortar shops/stores. Features of general and
> incidental interest are located at the back of the store. Typically in gift
> shops, I've even seen them in a different room to the back of the store -
> very often displaying local artwork - to encourage the customer/browser to
> come in and walk through the store to get to it. In this case it would only
> be necessary for the visitor to visit a single page within the store, to be
> able to click on the gallery button.
>

This is not a brick and mortar shop. This is an internet. And if I
want to bookmark a page, it's because I want to bookmark THAT PAGE.
Force me to run through hoops to get to the page I bookmarked and I will
never be back.


> Perhaps it's something for me to ponder - thanks for the advice.
>
> Neil
>
>
>
>
>
>
>
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Andrew Heenan on September 27, 2008, 10:06 am
Please log in for more thread options


>> But I would recommend not doing it. If I saw a site do that, it would be
>> the last time I visited the site.
> Personally I don't see anything wrong with it. This sort of thing happens
> all the time in bricks and mortar shops/stores. Features of general and
> incidental interest are located at the back of the store. Typically in
> gift shops, I've even seen them in a different room to the back of the
> store -

Where you put things is not really the issue; the issue is that people are
bookmarking one page, and being sent somewhere different.

That's like setting the Star Trek transporter to 'Gallery', saying "Beam me
up, Scotty", and arriving in front of store.

It's both disorienting and dishonest - neither severe - but severe enough to
break trust. And if you want Internet sales, trust is all.

Let people go where they want to go, and use imaginative and beguiling
signposting to make sure they want to go where you want tem to go!
--

Andrew
seo2seo.com
sick-site-syndrome.com

UK Residents:
STOP THE "10p Tax Ripoff"
Sign the petition to stop the government stealing from the
very poorest tell your friends about this petition:
http://petitions.pm.gov.uk/10penceband/



Similar ThreadsPosted
help needed with redirecting spam referrer using htaccess January 29, 2006, 2:20 pm
Restrict File Access using .htaccess ? September 20, 2006, 4:55 pm
Anonymous (guest) access using HTACCESS January 26, 2007, 1:11 pm
Locating a referrer May 26, 2005, 7:27 pm
referrer log question August 18, 2005, 11:48 am
referrer spoofing protection May 30, 2007, 8:37 am
google does not pur referrer in httpd logs November 25, 2005, 6:47 pm
Gigantic-sized Referrer Spam October 12, 2005, 12:45 pm
A unique htaccess config for an htaccess guru! April 23, 2006, 5:37 pm
Form submission - passing referrer error for Norton users January 26, 2007, 12:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap