Help with .htaccess

Help with .htaccess

am 17.11.2007 01:48:18 von Sandy

I've done a bit of ms basic but I dont understand "perl expressions"

Can someone tell me how to write a .htaccess file that will prevent
access to my site if a certain word or phrase appears anywhere in the
HTTP header please? I think thats what I need to do to make the
..htaccess work?

I'm finding .htacess files a bit too much to understand properly.

thank you

Sandy

Re: Help with .htaccess

am 17.11.2007 16:31:23 von Floor

sandy@notmyeamil.com:

> I'm finding .htacess files a bit too much to understand properly.

What have you done so far?
Floor

Re: Help with .htaccess

am 18.11.2007 04:27:51 von Sandy

In article <473f094a$0$236$e4fe514c@news.xs4all.nl>, Floor@yahooh.co.not
says...
> sandy@notmyeamil.com:
>
> > I'm finding .htacess files a bit too much to understand properly.
>
> What have you done so far?
> Floor
>
>
>

Hello Floor

Not a lot Im afraid. I can just about understand a for next loop but
after that im totally lost. [im not a programmer its just a hobby but
i could really do with this now if i can find a way to make it work]

I did follow a link I found here a few days ago and found the lines below
and managed to adapt them to work on my site

This i how I worked out it should be possible to do what I asked.
But not being able to understand the perl stuff and having no real hope
of doing so after studying this site for hours I was hoping someone had
already done it and might be willing to share.

Am I right in thinking it can be done and wouldn't be too complex
for people in this group? Is it something you can help with?

I found this - which was helpful to have from what ive read i think
+++++++++++++++++++++++++++++++++++++++++
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^askapache\.com$ [NC]
RewriteRule ^(.*)$ http://askapache.com/$1 [R=301,L]
++++++++++++++++++++++++++++++++++++++++++

If I just changed the askapache to my site name this works a treat.
Sadly its all way over my head tho.

Re: Help with .htaccess

am 19.11.2007 17:45:46 von Sandy

In article ,
sandy@notmyeamil.com says...
>
> I've done a bit of ms basic but I dont understand "perl expressions"
>
> Can someone tell me how to write a .htaccess file that will prevent
> access to my site if a certain word or phrase appears anywhere in the
> HTTP header please? I think thats what I need to do to make the
> .htaccess work?
>
> I'm finding .htacess files a bit too much to understand properly.
>
> thank you
>
> Sandy
>


Anyone please?

Sandy

Re: Help with .htaccess

am 05.12.2007 19:40:55 von Praki

On Nov 19, 9:45 pm, sa...@notmyeamil.com wrote:
> In article ,
> sa...@notmyeamil.com says...
>
>
>
> > I've done a bit of ms basic but I dont understand "perl expressions"
>
> > Can someone tell me how to write a .htaccessfile that will prevent
> > access to my site if a certain word or phrase appears anywhere in the
> > HTTP header please? I think thats what I need to do to make the
> > .htaccesswork?
>
> > I'm finding .htacess files a bit too much to understand properly.
>
> > thank you
>
> > Sandy
>
> Anyone please?
>
> Sandy

try this..

http://groups.google.com/group/alt.apache.configuration/brow se_thread/thread/d02a5d184a9e6f24/35889954309589b6?lnk=gst&q =.htaccess#35889954309589b6

this the the topic earch this u can find answer i hope. " what's
the .htaccess directive to deny all except localhost code?"

thanks,
prakash