![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
|
How do I block *****?
Wondering how I can, if I can, block certain domains from accessing pages on my domain.
What I need is something that will grab people from other countries and send them off to a url specified in the code. (example - www.bandwidtheaters.ru) I've looked around but must be looking in wrong places. Thanks in advance! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2001
Posts: 8,245
|
I've wondered the same thing. I'd like to know how to serve based on country also...
I've mastered .htaccess as per my requirements, hotlink protection, error documents and referrer redirection. However, with the redirection, I can only redirect, for example, if the referrer is NOT cheatingscumbags.com I'd like to know how to set up .htaccess redirect (for example) traffic if it IS coming from cheatingscumbags.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2001
Location: Non cheating area, Denmark
Posts: 228
|
IIS 5.0 has a nice feature, where you can grant access to all Ip adresses or domains except for... <your list> etc.. Those on the list will just get a 403 error. Is that what you are looking for ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Apr 2001
Posts: 1,738
|
you can do this with php pretty easily. Something like this:
<?php ereg("\.([a-z]+)$", $country, $regs); switch ($regs[1]) { case "uk": header("Location: http://....uk site"); break; case "es": header("Location: http://...spain site"); break; default: header("Location: http://...default site"); } ?> Tim |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
|
No more like something I can put on the server that would control all pages on my domain and subdomains.
Is there an htaccess that would make this happen? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
|
hardcore... I don't know anything about php... where would I put that code on my server?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2001
Location: Amost UK central
Posts: 772
|
I am working on the same idea but with a few extras for good measure. Wish I had learn't php inline code instead of perl
![]() HCH - I have started reading the PHP book - its not so bad, just finding the time that's the problem. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too old to care
Industry Role:
Join Date: Jun 2001
Location: On the sofa, watching TV or doing my jigsaws.
Posts: 52,943
|
UNBAN ME, LENSMAN!
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
So Fucking Banned
Join Date: Jun 2003
Posts: 396
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |