GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .haccess help, not hotlinking, but frame busting. (https://gfy.com/showthread.php?t=62952)

Mr.Fiction 06-03-2002 07:00 PM

.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.

volante 06-03-2002 07:18 PM

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...

Mr.Fiction 06-03-2002 07:24 PM

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.

spanky 06-03-2002 07:43 PM

you could just block that domain

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

cheers

Mr.Fiction 06-03-2002 08:12 PM

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. :)


All times are GMT -7. The time now is 11:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123