PDA

View Full Version : Is this possible? (possibly .htaccess related)



Gayowulf
October 30th, 2005, 19:25
Is it possible to allow access to a page or directory only if the user is referred from a certain domain?

A few friends and I run a smallish adult related forum, and we supply hosting for those who want to create galleries for the members of the forum.

as of late we've had a problem with reposters: leechers repost the urls to the created galleries at larger forums and TGPs. This absolutely rapes our bandwidth and angers the gallery creators.

What I'm trying to do is make the gallery pages accessible only to those who have followed the link posted on OUR board. if anyone else clicks they should get a 403 error, redirected, etc.

Thanks for any help or input you can offer :)


edit: I just realized this would probably be more on topic if it was in the programming forum. I'll leave it up to the mods to make the call.

stuffradio
October 30th, 2005, 23:57
Try using Javascript, I forget what it's called but search Javascript website referal in Google.

Gayowulf
October 31st, 2005, 00:26
good idea, but most of the users surf with java disabled.

kabatak
October 31st, 2005, 05:31
possibly server side languages like php, but even referers can be faked.

Gayowulf
October 31st, 2005, 10:48
I know that it's not hard to spoof your referrer, but at this point any deterrent is great.

Wojtek
October 31st, 2005, 18:30
you can spoof the referrer if you know where it should come from
most adultsite surfers wont go thruh this crap

"Error 404"
ah crap, just press back and click the next link -Surfer

Gayowulf
October 31st, 2005, 21:41
you're right Wojtek, and that's the point. the posters at our forum are a very tight-knight community. all of us have been at this since '99/2000. we want to see each others posts; it's private and not for random pervs looking for free material to rub one out to. Anything we can do to prevent them from repostring is welcome.