|
|
|
|
|
|
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#16 | |
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
|
Quote:
but I removed along with the port number was http(s)? in case some part of the site used SSL either presently or in the future. That would cover an additional case, whether or not it's worth including is another matter. Additionally I unless you're running a web server on some port other than port 80 you may want to just say 80 for the port number. Makes it just a tad faster. Of course that analagous to my subdomain part, where I chose to allow more than just www. Another judgement call speed / versus flexibility. I was thinking that we had taken care of user:pass@host URLs, but I'm not seeing exactly how just at this moment. Perhaps the tested browsers wouldn't allow blah.com/ in the authentication part, but treated it as a host/path when it saw the forward slash (/). Unless I'm missing something, we actually want to gobble up anything up to and including @ before going any further: RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*yourdomain.com(:[0-9]+)?(/.*)?$ [NC] (([a-z0-9-]+\.)+)? ? ![]() For those who don't catch the difference, I had a typo where I said "optionally with a subdomain" rather than "optionally with subdomains". His fix for my typo was to say: (([a-z0-9-]+\.)+)? ergo "one or more subdomains, repeated one or zero times" Simpler, we say "with or without subdomains": ([a-z0-9-]+\.)* |
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|