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-09-2002, 01:44 AM   #1
andrejor
Registered User
 
Join Date: Feb 2001
Posts: 4
Htaccess to redirect all .jp traffic ?

Hi, I was trying to adjust my .htaccess file to redirect
all trafic coming from *.jp domains. Unfortunately I had
no success. Please, can anybody advice me if it is possible
to use RewriteCond %{HTTP_REFERER} to protect my site from
surfers comin from ALL *.jp domains ? Thanks in advance
andrejor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-09-2002, 01:47 AM   #2
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
.jp is probably all viruses, firewall their asses out!
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-09-2002, 12:13 PM   #3
andrejor
Registered User
 
Join Date: Feb 2001
Posts: 4
Thanks ... but this does not solve my problem ... I need to
do it through htaccess ... any other ideas ?
andrejor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-09-2002, 09:26 PM   #4
Midnight
Confirmed User
 
Midnight's Avatar
 
Join Date: Jun 2001
Location: ONLINE
Posts: 330
Here is a .htaccess sample Redirect based on a specific Machine Name. I have not tried to mask the host, like *.*.jp or *.jp , but maybe this might get you going in the right direction.

This sample will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net .

Add the following to the .htaccess file:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domainname.net
RewriteCond %{HTTP_HOST} machine.domainname.net$
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1
__________________
Codifico, quindi sono
icq 118-997-859
Midnight 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.