Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-03-2002, 07:00 PM   #1
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
.haccess help, not hotlinking, but frame busting.

Ok, some webmaster has decided to frame some of the galleries that we post to TGP's. He's also using our trademarks and some other shit on his page. I'm going to have my lawyer take care of bizness, but in the meantime, I need to block him from framing some of our pages.

I know I can use a javascript that will do framebusting, but that will also break other people's frames and they might get pissed and yell at me or whatever.

I know the URL of the site he is framing us from, so how can I block just his site from seeing our content? I want his frame to either be blank or show some picture of some guy's hairy ass, or whatever.

Can I do that with .htaccess easily? It can't mess with the other sites that are using the content, just this one person who is messing with us.

I'm praying to the .htaccess gods that someone here will know how to do this.

Thanks.
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2002, 07:18 PM   #2
volante
Confirmed User
 
Join Date: Mar 2002
Location: LAX Immigration
Posts: 2,940
I'm not 100% sure, but you should be able to do this with just javascript - something like this perhaps:


...Damn, can't get the javascript to show up... ...

I'm no javascript expert so it probably contains some errors, but it should be close.

Basically, if document.referrer is the url of the framing arsehole then break out of frames...

Last edited by volante; 06-03-2002 at 07:21 PM..
volante is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2002, 07:24 PM   #3
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Quote:
Originally posted by volante
I'm not 100% sure, but you should be able to do this with just javascript - something like this perhaps:


...Damn, can't get the javascript to show up... ...

I'm no javascript expert so it probably contains some errors, but it should be close
Thanks for the reply.

If you want to post code you usually need to use [ code ] [ / code ] - at least that's what usually works on forums.

As far as the javascript, I know those would work, but it would bust all frames, I just want to block access from this one site. If I start busting all frames, then some sites that might use those tiny tracking frames or whatever might get broken.

I just want to know how to use .htaccess to block this one site from framing us. I think it should be possible, though I'm not 100% sure.
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2002, 07:43 PM   #4
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
you could just block that domain

RewriteEngine on
RewriteCond %{HTTP_REFERER} http://www.bad-guys.com/.* [NC]
RewriteRule .* - [F]

cheers
spanky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2002, 08:12 PM   #5
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Quote:
Originally posted by spanky
you could just block that domain

RewriteEngine on
RewriteCond %{HTTP_REFERER} http://www.bad-guys.com/.* [NC]
RewriteRule .* - [F]

cheers
Cool & thanks. I think that's what I was looking for. Bow to the GFY.
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.