Forum Moderators: phranque

Message Too Old, No Replies

.htaccess

         

GandalfDDUK

3:42 am on Feb 5, 2006 (gmt 0)

10+ Year Member



Can someone please help as this has been doing my head in for the last 5 hours.
I have a domain say www.domain.com
On it I have placed some banners which I am attempting to force people to click before being forwarded to the next place. This I have managed to get working, my problem now is preventing people from bypassing the banners and accessing the new url directly
so when you click a banner from [some.domain.com...] it opens up in a new window the url [domain.com...] or maybe [folder.domain.com...] (not sure yet). Anyway how do I stop people from just going direct to [domain.com...] without first clicking a banner.
I tried doing an htaccess along the lines;

Order Allow,Deny

Allow from some.domain.com

Deny from domain.com

This stops them from bypassing the banners but it also gives me a 403 error from where I want them to come from.

jdMorgan

3:49 am on Feb 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



GandalfDDUK,

Welcome to WebmasterWorld!

> my problem now is preventing people from bypassing the banners and accessing the new url directly

Generally, you can't stop this without setting a cookie on the banner access and then using a script to check for the cookie on the destination page.

Simple access control based on HTTP_REFERER info isn't reliable enough for this kind of application.

Jim

GandalfDDUK

4:00 am on Feb 5, 2006 (gmt 0)

10+ Year Member



Ok, is it therefore possible to remove the title bar from the new window in any way, ie the blue band at the top or just the writing in it?

It now works so that if a website has a title tag my new url does not display but any sites that don't have them and the url shows up.