Jump to content

deny several file and regular expression - htaccess


zsedc

Recommended Posts

Hi

 

I have htaccess file which deny from several files located in directory.

 

<FilesMatch "^(druk.php|sitemapX.php|rssX.php)$">

AuthName "Przepraszam"

AuthType Basic

AuthUserFile /home/username/.htpasswd

Require valid-user

</FilesMatch>

 

And now i would like also to block all URLs having "xyz" string.

index.php?co=ktos&zmienna=xyz&id=20 would be denied because of "xyz" in there.

 

Is it possible? How to do it?

Many thanks

 

Pawel

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.