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)
-   -   Htaccess to redirect all .jp traffic ? (https://gfy.com/showthread.php?t=63616)

andrejor 06-09-2002 01:44 AM

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

mike503 06-09-2002 01:47 AM

.jp is probably all viruses, firewall their asses out!

andrejor 06-09-2002 12:13 PM

Thanks ... but this does not solve my problem ... I need to
do it through htaccess ... any other ideas ?

Midnight 06-09-2002 09:26 PM

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


All times are GMT -7. The time now is 08:22 PM.

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