Forum Moderators: open
How do I find out if I have access to my htaccess to block it from my site?
Is your website Windows based or Apache based?
If Apache? Do you enter your site through a Control Panel on the http side?
The root folder you upload your domain files to should contain a htaccess file.
Open it on the http side and add the lines you desire.
Save the file.
Exit the Control Panel.
Make SURE that you check your website to assure it functions after the htaccess change.
If Windows based-IIS?
It requires httpconfg (sp?) somebody else will need to help you.
Well, that didn't work. So I removed the line 'allow from all'
Powdork
The correct syntax should be as follows:
order allow,deny
deny from 12.119.251.194
allow from all
I would also suggest rather than restricting yourself to the
solitary 194 last class that you chop it off at "251." and don't forget to include the period after 251
Don
bunch attacks from _ ip 208.159.61.XXX block.
thewebboy
Rather than restict the Java intruder to that specific IP?
I would suggest eliminating any Java intrusions in the future by using the following:
SetEnvIf User-Agent ^Java keep_out
order allow,deny
deny from 208.159.61.
allow from all
deny from env=keep_out
This catches ALL UA's which "begin with Java" and are followed by anything of any length.
Should yu desire to add in the IP range (as I have) you may do that also.
Don
order allow,deny
This means that allow-directives are processed first, and that access is denied by default. If you do not include the "allow from all", everyone that are not specified explicitly gets denied (that means all in this case). If you change to this order:
order deny,allow
Then deny-directives will get processed first, and access is allowed by default. That is: with this order you don't need the "allow from all" line.
/claus
BTW, I would suggest starting with a very simple htaccess. Perhpas using a single example of the most common entries to deny and allow and THEN, once you have understood and watched those lines work?
Begin expanding to the ranges you desire.