Changes to Apache directives and options supported in .htaccess files

Status
Not open for further replies.

ourphoto

Member
Messages
31
Reaction score
0
Points
6
Hi, currently my .htaccess file has these contents:

# Block Baidu

SetEnvIfNoCase User-Agent "^Baidu" bad_bot
SetEnvIfNoCase User-Agent "^sogou" bad_bot
SetEnvIfNoCase User-Agent "^Bloghoo" bad_bot
SetEnvIfNoCase User-Agent "^Scooter" bad_bot

Deny from env=bad_bot



Should I modify anything? I kept getting 500 or 404 errors on some of the pages.
for example, when we try to modify our own personal pages, it won't go through:
http://ourphoto.x10.bz/home.php?mod=spacecp&ac=index
or when we try to post Flickr images with codes, we get errors.
Our posts only work when we post Flickr images with only BBcodes.

Forbidden
You don't have permission to access /home.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

thanks!
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Sorry that we missed your reply from over a month ago. It looks like it was on a stickied information post instead of in the general forum.

Are you still experiencing this problem? The SetEnvIfNoCase and SetEnvIf directives are both available in .htaccess, and I've just double-checked to make sure they're working without causing an error.
 

ourphoto

Member
Messages
31
Reaction score
0
Points
6
Sorry that we missed your reply from over a month ago. It looks like it was on a stickied information post instead of in the general forum.

Are you still experiencing this problem? The SetEnvIfNoCase and SetEnvIf directives are both available in .htaccess, and I've just double-checked to make sure they're working without causing an error.

it's working fine now. they have removed the url restrictions. thank you!
 
Status
Not open for further replies.
Top