New section: BAN from the site

AleSSaNDRo

Verified User
Joined
Nov 19, 2004
Messages
108
Location
Milano(Italy)
Why you do not add one new section: BAN from the site ?
This function allows to ban IP, agent, etc from the entire domain.
 
S' is for this also the section "Site Redirect" writes simply in the file .htaccess!!! ... it 1 is adding for who does not know the codes for file htaccess
 
AleSSaNDRo said:
S' is for this also the section "Site Redirect" writes simply in the file .htaccess!!! ... it 1 is adding for who does not know the codes for file htaccess

Try this...

<Limit GET HEAD POST>
order allow,deny
deny from ****put IP here****
allow from all
</LIMIT>

Just delete ****put IP here**** with the IP

For more than 1..

<Limit GET HEAD POST>
order allow,deny
deny from ****put IP here****
deny from ****put IP here****
allow from all
</LIMIT>

* Enter the ip address or partial ip address you'd like to block from your site.
* You can also use domain names, ie aol.com will block all users from aol.
* Copy the code and paste it into notepad and save it as htaccess.txt. Upload it in ASCII format to the main folder of your website, or the folder you'd like to block access to. Rename it to .htaccess (remember the dot!!)
* Unless you have your ftp program set to show invisible files, the file will then disappear from sight. Don't worry, it's still there!
* If you have an existing htaccess file, copy and paste the generated code into that.
* Hit enter after the last line of code, or it may produce an error

I got this code from a google search but the site it was on had far too many popups to just refer you :)

Rob
 
Last edited:
Back
Top