b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » Message 1793879 (Thread)

# Don't use specifics..
Alter this to suit :)

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://[^.]*\.stuffinmyhead\.com/.*$
RewriteCond %{HTTP_REFERER} !^http://[^.]*\.b3ta\.com/.*$
RewriteCond %{HTTP_REFERER} !^b3ta\.com/.*$
RewriteCond %{HTTP_REFERER} !^http://[^.]*\.flibz\.com/.*$
RewriteCond %{HTTP_REFERER} !^http://[^.]*\.by-users\.com/.*$
RewriteCond %{HTTP_REFERER} !^http://[^.]*\.byusers\.com/.*$
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]|.*[Pp][Nn][Gg]$ -[F]
(, Sat 16 Aug 2003, 14:00, archived)
# Do you know how to change/pass vars
like the one on top of b3ta, or use mod_redirect thinggy? Im on a normal webserver.
(, Sat 16 Aug 2003, 14:10, archived)
# Only know how to do it with PHP
If PHP's enabled on your server it's not difficult.
If you're not sure, try sticking this in between the <BODY> </BODY> tags like so:

<BODY>
<?php phpinfo(); ?>
</BODY>

Save the page as test.php or something, then upload it and see what happens when you go to the page in the browser
(, Sat 16 Aug 2003, 14:17, archived)
# I'm not using a script this time around.
new server has a controll panel. and I'm shite at code, you mean specifics being http:// and www?
I think I'll just turn it off for now.
(, Sat 16 Aug 2003, 14:12, archived)
# Nope :)
By specifics, I meant using abc.y.com , cde.y.com etc - use wildcards as above ;) that way it works for anything.y.com :)

All you need to do is save that text in a file called .htacecss and upload it to the folder you want it to apply to :) No actual scripting involved
(, Sat 16 Aug 2003, 14:19, archived)
# hmmm
say I have folder b3ta with subfolders, need one in each sub?
(, Sat 16 Aug 2003, 14:22, archived)