[mod-security-users] can I do this with mod_security?
Brought to you by:
victorhora,
zimmerletw
From: Didier W. <did...@mc...> - 2004-01-18 22:34:12
|
Hi, (apache, *nix, newbie) As you are referring to mod_rewrite and mod_bandwidth on your homepage but I didn't exactly find these options in the doc. My purpose would be to only use mod_security and disable 3 other modules (setenvif, rewrite, bandwidth). I'm using mod_rewrite & mod_setenvif to do the following: (I know it isn't secure :-), it is only for testing) SetEnvIfNoCase Referer "^http://www.home.local" locally_linked=1 <FilesMatch "\.(html|gif|zip)$"> Order Allow,Deny Allow from env=locally_linked </FilesMatch> The server asks for the referrer and denies access to the server if the referrer isn't http://www.home.local. 1) Can I do this with mod_security, if so, how would the syntax look like when referring to the above sample? 2) Concerning mod_bandwidth I have one additional question, is mod_security able to do bandwidth throttling, allow max 2 simultanous connections (which is interesting while downloading larger files, zip files etc..) My purpose of this would be to set a download limit of XY kb per seconds per ip and that users won't be able to start a third download until there is one of the two download (slots) free. Many thanks for the help Didier |