Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > redirect to a perl script with htaccess

Reply
Thread Tools

redirect to a perl script with htaccess

 
 
Nospam
Guest
Posts: n/a
 
      05-27-2006
If I wanted to perform a redirect with htaccess to a perl script, how would
I perform this, would an example like this suffice:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://.*example.com*$ [NC]
RewriteRule .*\.(jpg|JPG)$ /path/to/perlscript.pl
[T=application/x-httpd-cgi,R]


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      05-27-2006
Nospam wrote:
> If I wanted to perform a redirect with htaccess to a perl script, how would
> I perform this, would an example like this suffice:
>
> RewriteEngine On
> RewriteCond %{HTTP_REFERER} !^http://.*example.com*$ [NC]
> RewriteRule .*\.(jpg|JPG)$ /path/to/perlscript.pl
> [T=application/x-httpd-cgi,R]
>
>


You may not want to do this any more with the advent of firewalls like
Norton's that block the HTTP_REFERER! Noticed in my 404 script. I would
use HTTP_REFERER to determine if there was a bad link on my site, or an
obsolete link on someone else site, or if it was direct from a typed
address or bookmark. My logs are showing about 10% blocked and rising

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
Sherm Pendley
Guest
Posts: n/a
 
      05-27-2006
"Nospam" <> writes:

> If I wanted to perform a redirect with htaccess to a perl script, how would
> I perform this


The same way you'd configure your server to redirect to any other kind of
resource.

What was your Perl question? Or your HTML question, for that matter?

Followups have been set to the one relevant newsgroup in the list.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
 
Reply With Quote
 
Jerry Stuckle
Guest
Posts: n/a
 
      05-27-2006
Sherm Pendley wrote:
> "Nospam" <> writes:
>
>
>>If I wanted to perform a redirect with htaccess to a perl script, how would
>>I perform this

>
>
> The same way you'd configure your server to redirect to any other kind of
> resource.
>
> What was your Perl question? Or your HTML question, for that matter?
>
> Followups have been set to the one alt.html relevant newsgroup in the list.
>
> sherm--
>


Not really valid for alt.webmaster, either. You you be better to direct them to
an appropriate newsgroup - like alt.apache.configuration.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

==================
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess from perl script? Mark Perl Misc 5 01-12-2004 09:57 PM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM
Re: .htaccess - batch rewrite/ redirect? David Dorward HTML 2 06-29-2003 03:19 PM
Re: .htaccess - batch rewrite/ redirect? brucie HTML 0 06-28-2003 08:23 PM
Re: .htaccess - batch rewrite/ redirect? John Bokma HTML 0 06-28-2003 03:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57