Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
WebHosting Related
cPanel/WHM
block IP address in the server
Pages: [
1
]
Go Down
« previous
next »
Topic: block IP address in the server (Read 838 times)
0 Members and 1 Guest are viewing this topic.
block IP address in the server
« on: June 24, 2009, 10:33:51 PM »
w3school
Newbie
iTrader: 0
Posts: 26
How can I block the IP addresses so that no one can access the server or sites from those IP addresses? I want block some IP addresses on my Red hat Linux (cPanel) box.
Thanks,
w3school
Logged
Re: block IP address in the server - Linux server
« Reply #1 on: June 24, 2009, 10:37:15 PM »
Kailash
Administrator
Newbie
iTrader: 50
Posts: 273
You can use one of the following Firewall on your server:
[1] ConfigServer Security and Firewall
For more details on ConfigServer Security and Firewall, visit
http://www.configserver.com/cp/csf.html
[2] APF
For APF installation, you can refer
http://www.webhostgear.com/61.html
Also, if you want to block the IP address for one particular site then you can do it via .htaccess file. You just need to add following directive to block the IP address:
Code:
deny from IP address
Kailash
Logged
cPanel/WHM Configuration
|
Web Hosting Discussion Blog
CMS Web Hosting
Follow Us on Twitter!!
Re: block IP address in the server
« Reply #2 on: June 24, 2009, 10:39:03 PM »
digitalpoint
Newbie
iTrader: 0
Posts: 46
Can we block the IP range for particular web site using .htaccess ?
Thanks,
Digitalpoint
Logged
Re: block IP address in the server
« Reply #3 on: June 24, 2009, 10:40:27 PM »
Kailash
Administrator
Newbie
iTrader: 50
Posts: 273
Quote from: digitalpoint on June 24, 2009, 10:39:03 PM
Can we block the IP range for particular web site using .htaccess ?
Yes, you can. Just add following line:
deny from x.x.x.x-x.x.x.x
If you want to block just on IP range, you can do it using following:
deny from 192.168
It will block the access for 192.168.0.0 to 192.168.255.255
Kailash
Logged
cPanel/WHM Configuration
|
Web Hosting Discussion Blog
CMS Web Hosting
Follow Us on Twitter!!
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
WebHosting Related
-----------------------------
=> cPanel/WHM
=> HELM and other Hosting control panels
=> Email Management Software & Email Clients
=> Domain Registration
=> VPS Hosting
=> Dedicated Server Hosting
=> Script/software installation and upgrade
=> Other Web Hosting Stuff
-----------------------------
Design and Development
-----------------------------
=> Programming
===> ASP
===> PHP
===> .NET Development
=> Site and Server Administration
===> Apache
===> Microsoft IIS
===> Security
=> Databases
===> MySQL
===> MSSQL server
===> MS Access
=> HTML, CSS and Website Design & Programming
=> Forums and Content Management
-----------------------------
Operating System
-----------------------------
=> Windows
=> Linux
-----------------------------
Search Engines
-----------------------------
=> Google
=> Yahoo
=> MSN
=> Other Search Engines
=> Search Engine optimization and Link Exchange
-----------------------------
Payment Gateways
-----------------------------
=> 2Checkout
=> PayPal and PayPal Manager (Verisign)
=> Other Payment Processors
-----------------------------
General
-----------------------------
=> How Tos
===> SmarterMail and other Email Servers
===> Linux
===> Windows
===> cPanel/WHM
===> HELM and other Hosting Control Panels
=> Free Services
=> Paid Services
=> Marketplace
===> Advertising Sales & Affiliate Programs
===> Forex Trading (Currency Trading)
-----------------------------
NEWS, Alert and Entertainment!!!
-----------------------------
=> Introduce yourself
=> Suggestions
=> General Chat
=> Contests
Untitled Document
Home
|
Forum
|
Blog
|
Wordpress KB
|
Link Exchange Directory
|
Directory
Link exchange
|
Sitemap
|
Blog Sitemap
|
Privacy Policy