View Full Version : Can you block a domain ?
heather4fun
03-13-2002, 08:57 PM
I mean like, can you block traffic to your index from a certain domain? Say they are hotlinking you, (your site to run your bandwith) can you block them? Maybe this is really stupid, but I really need know. Thank you
AgentCash
03-13-2002, 09:02 PM
Yes, yes you can...
AgentCash
03-13-2002, 09:04 PM
<a href="http://www.javascriptkit.com/howto/htaccess10.shtml" target="_blank">http://www.javascriptkit.com/howto/htaccess10.shtml</a> <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" />
AgentCash
03-13-2002, 09:08 PM
If they're hotlinking your page, and popping it in a hidden window, or loading it in a frame, just drop some javascript in there to make sure your page always opens up fullscreen, & breaks out of frames.<br />I use<br /> </font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: fixed;">self.moveTo(-5,-5);<br />self.resizeTo(screen.availWidth+10,screen.availHei ght+10); </pre><hr /></blockquote><font size="2" face="Verdana, Arial">to make sure mine opens fullscreen.
AgentCash
03-13-2002, 09:15 PM
Lets see... this should work well... put the following between your head tags </font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: fixed;"> <br />if (top.location != location) {top.location.href = document.location.href;}<br />self.moveTo(-5,-5);<br />self.resizeTo(screen.availWidth+10,screen.availHei ght+10);<br />self.focus();<br /> </pre><hr /></blockquote><font size="2" face="Verdana, Arial">You might want an </font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: fixed;">onblur="self.focus();"<br />or<br />onblur="setTimeout('self.focus();',5000)" </pre><hr /></blockquote><font size="2" face="Verdana, Arial">in your body tag as well.
PeepNTom
03-13-2002, 09:19 PM
hit me up heather, got something for ya <img border="0" alt="[Hi]" title="" src="graemlins/hi.gif" />
SexySites
03-13-2002, 10:44 PM
htaccess is much better doesnt use b/w up then... <img border="0" title="" alt="[Wink]" src="wink.gif" /> talk to tom <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />laters,<br />Chris
AgentCash
03-13-2002, 10:49 PM
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by SexySites:<br /><strong>htaccess is much better doesnt use b/w up then... <img border="0" title="" alt="[Wink]" src="wink.gif" /> talk to tom <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />laters,<br />Chris</strong></font><hr /></blockquote><font size="2" face="Verdana, Arial">So you'd turn away free traffic? I've seen some of these idiots just pop the site in a window off screen, that's just traffic for the taking... now if they're hotlinking images... then yes htaccess is the way to go, as per my second post in this thread <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" />
heather4fun
03-14-2002, 02:07 PM
AgentCash, No I dont turn away traffic, I am talking about no-traffic, just running bandwith, I figured it out. Thanks for the help though
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.