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 05-11-2004, 02:58 PM   #1
Pusser
So Fucking Banned
 
Join Date: Aug 2003
Posts: 85
htaccess question

If I want to redirect all Arabic Language Browsers would the following work:

RehahahahahaCond %{HTTP:Accept-Language} ar* [NC]
RehahahahahaRule .* http://www.yahoo.com

My question is about the "ar*" , is that correct?

I would like to avoid having multiple lines for: ar-dz, ar-bh, etc...
So I am guessing putting a * is a wildcard?

Thx!
Pusser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 03:04 PM   #2
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 03:08 PM   #3
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
yes ar is correct, but you do not need the wild card.
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 03:10 PM   #4
PrivateIvy
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Location: North Carolina
Posts: 4,257
There are some really good tools/tips for htaccess here:

http://www.clockwatchers.com/htaccess_tool.html



Ivy
PrivateIvy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 03:12 PM   #5
Pusser
So Fucking Banned
 
Join Date: Aug 2003
Posts: 85
But without the wild card I would need multiple lines to block
all the Arabic codes right? i.e.:

RehahahahahaCond %{HTTP:Accept-Language} ar-dz [NC]
RehahahahahaRule .* http://www.yahoo.com
RehahahahahaCond %{HTTP:Accept-Language} ar-bh [NC]
RehahahahahaRule .* http://www.yahoo.com
RehahahahahaCond %{HTTP:Accept-Language} ar-eg [NC]
RehahahahahaRule .* http://www.yahoo.com
RehahahahahaCond %{HTTP:Accept-Language} ar-iq [NC]

I would like to block all browsers that have ar followed by anything. So if not a *, what would I use?

Thx!
Pusser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 05:25 PM   #6
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
I believe if you put a start of line anchor ie: ^ in front of the language code it'll cover them all.

^ar [NC]

would get ar-dz, ar-bh, etc...
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 07:55 PM   #7
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,787
Arabic Language Browsers ?

For what ?


Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2004, 08:02 PM   #8
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Quote:
Originally posted by Fabien
Arabic Language Browsers ?

For what ?


Maybe for redirecting them to dialers or worse
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2004, 02:04 AM   #9
mryellow
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Australia
Posts: 934
Quote:
Originally posted by Lycanthrope
I believe if you put a start of line anchor ie: ^ in front of the language code it'll cover them all.

^ar [NC]

would get ar-dz, ar-bh, etc...
Correct. ^ is start of string $ is end of str-ing.

http://www.webpimps.com/scripts/htaccess/

-Ben
__________________
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.

<- I in no way endorse whatever just got stuck on the left of my post.
mryellow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2004, 09:27 AM   #10
mryellow
Confirmed User
 
Industry Role:
Join Date: May 2001
Location: Australia
Posts: 934
oh btw...

ar*

* isn't the wildcard character the period (.) is.

.* = anything zero or more times

.+ = anything 1 or more times.

-Ben
__________________
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.

<- I in no way endorse whatever just got stuck on the left of my post.
mryellow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2004, 10:32 AM   #11
cayne
My time is coming...
 
Join Date: Jan 2004
Location: Europe --- eMail: service(at)badasscompany.com --- ICQ: 60288510
Posts: 7,476
Quote:
Originally posted by Lycanthrope
yes ar is correct
yep. he's right.
__________________
If lesbian anal is wrong, I don't want to be right.
cayne 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.