Font Size
Free Script installer FORUMS Ad management Portals and Cms Blogs Welcome Hepsia cPanel hosting
Free Script installer
You're about to get acquainted with a brand new mechanism of installing and managing PHP scripts. Our Elefante Installer allows you to install and manage blogs, forums, image galleries, content management systems, e-shops and many more, without any knowledge of basic programming languages such as HTML, PHP, etc. The Elefante Installer is a FREE PHP web application services installer which makes it easy for you to automatically install over 40 popular PHP script packages straight from your personal Web Hosting Control Panel or have the script insalled when you sign up ready for use.
Read the Full Story
FORUMS
An Internet forum is a discussion area on a website. Website members can post discussions and read and respond to posts by other forum members. An Internet forum can be focused on nearly any subject and a sense of an online community, or virtual community, tends to develop among forum members.
Read the Full Story
Ad management

Ad Management Scripts/Software

Pop-ups and other kinds of advertisements are a constant irritation for many Internet users. But, like all things media (such as television and radio), the web can't continue to exist without them. Whether webmasters like it or not, advertising helps pay their bills to keep their sites running. Therefore, it's always a good idea to know how to make them work for you. One way you can do this is to use ad management scripts or software. The sheer number available, online or otherwise, guarantees that you'll be able to find one that will fit your needs and budget.
Read the Full Story
Portals and Cms
A portal Web site is a Web site that aims to be your "portal," or entranceway,  to most anything you can do on the Web. For example, Yahoo is considered a  portal because it offers a search engine that helps you find other Web sites, as  well as topics categories such as finance,  travel, health, etc. that help you find information on the Web about those  topics. In the 1998-2001 phase of the Internet, many Web sites aspired to be  portals, because they believed it would mean users would use them as their  "start page" and visit frequently, even if they eventually left to visit other  Web sites. However, these days, most Web sites do not want to be mere start  pages; they want to keep you on their Web site for as long as possible, and not  take you to other Web sites.
Read the Full Story
Blogs

What's a blog?

A blog is a personal diary. A daily pulpit. A collaborative space. A political soapbox. A breaking-news outlet. A collection of links. Your own private thoughts. Memos to the world. Your blog is whatever you want it to be. There are millions of them, in all shapes and sizes, and there are no real rules. In simple terms, a blog is a website, where you write stuff on an ongoing basis. New stuff shows up at the top, so your visitors can read what's new. Then they comment on it or link to it or email you. Or not
Read the Full Story
Welcome
  • Upto unlimited GB Disc Space
  • Upto Unlimited Data Transfer
  • FTP, Stats
  • Upto unlimited Email Accounts
  • Free sub Domain Name
  • Free Site Builder
  • Unlimited Domain Hosting
 
Read the Full Story
Hepsia cPanel hosting

Hepsia Control Panel Top Features

You can now register, transfer or manage multiple domain names & websites from just one place. This is something cPanel has big problems with. Actually there is no Domain Manager at all in cPanel. With Hepsia you can set up and manage multiple fully independent websites from a single account. No need to have separate control panels (i.e. logins) for your domains, support tickets and billing.
Read the Full Story

How to use a CIDR netmask to block an IP address range in .htaccess

This article explains why you must sometimes use CIDR netmask notation to ban an IP address  range  in Apache .htaccess, and how to do it. It is intended to supplement the basic  Apache information about mod_access in the documentation at http://httpd.apache.org/docs/1.3/mod/mod_access.html.

An IP address is a 32-bit binary number that uniquely identifies a computer on the internet

32-bit binary is hard to remember : 11000000010000000000000000000000
Decimal notation isn’t much easier: 3225419776
So it is usually written like this     :192.64.0.0

You get this “dotted-quad notation” by breaking the 32 bits into 4 groups of 8 and then converting  each group to decimal:

11000000 01000000 00000000 00000000
192 64 0 0

192.64.0.0

That makes it easier to remember, but it creates problems if you try to use it for  calculations.

An IP address contains two pieces of information:

  1. The leftmost binary digits are the unique ID of the network (usually your Internet Service Provider, ISP) through which you are connected to the internet.
  2. The remaining binary digits are your unique ID as an individual user on that  network.

The number of leftmost digits used for network ID is not the same  for every network. In CIDR notation, the /nn part says how many of the leftmost bits indicate the network.

If the network uses exactly the leftmost 8, 16, or 24 bits for its ID, then  the dividing line between network and user falls on one of the period boundaries  of the dotted-quad notation, and one of the partial IP notations will work:

.htaccess partial IP address Equivalent CIDR
deny from 192 deny from 192.0.0.0/8
deny from 192.64 deny from 192.64.0.0/16
deny from 192.64.0 deny from 192.64.0.0/24

Each quad that you don’t specify is treated as a wildcard that can take any  value from 0 to 255. So the first example bans any IP address that starts with  192., followed by anything.

When to use CIDR notation

If the network doesn’t use exactly 8, 16, or 24 bits for the network part of  the IP address,  the dividing line between network and user does not fall on a period  boundary of dotted-quad notation, and you need to use a CIDR netmask.

Example CIDR/netmask:

192.64.0.0/10

This says the base address of the network is 192.64.0.0 and  the first 10 bits are the network:

192 64 0 0 = 11000000 01000000 00000000 00000000

192 is the first 8 bits, but two more bits are part of the network  ID, too. The 9th bit is 0 and the 10th is 1, and that is where the 64  comes from.

The full range of this network in quad notation is 192.64.0.0 -  192.127.255.255. Note that the 64 in the second position doesn’t remain  constant. The first 2 bits are always the same, but the righthand 6 will be  different for different users.

The simple notations for an .htaccess ban won’t work. Why not?

  • deny from 192 would ban the range 192.0.0.0 – 192.255.255.255, which will  ban some users that are not coming from this network.
  • deny from 192.64 would ban the  range 192.64.0.0 – 192.64.255.255, which is insufficient to ban all the users that are coming from this network.

So the answer is CIDR notation and an .htaccess line that says:

deny from 192.64.0.0/10

This says the base address is 192.64.0.0, and the first 10 bits identify the  network (those are always the same for all users who are on that network).

To ban a specific IP range in htaccess

  1. Figure out, from your website access logs or elsewhere, the IP addresses you want to ban. Look  them up in a WhoIs database such as http://whois.domaintools.com/.
  2. Determine whether you need to use a CIDR netmask. If the IP address range in the report looks like one of these, with each quad after the leading one(s) showing a rull range of 0-255, then you can use one of the simpler methods:192.0.0.0 – 192.255.255.255  – Use deny from 192
    192.64.0.0 – 192.64.255.255   – Use deny from 192.64
    192.64.128.0 – 192.64.128.255 – Use deny from 192.64.128
  3. For anything else, you need CIDR. At Domain Tools, the CIDR netmask is sometimes shown in the report for that  IP address, several lines down in the report. If it is, that’s all you need. You’re ready to create the line in your .htaccess file. Go to Step 5.
  4. If the CIDR wasn’t given, you can calculate it yourself with a netmask  calculator such as http://jodies.de/ipcalc

a) Enter the base (lowest) address.

b) You can simply determine the netmask (the /nn part) by trial and error, or you can calculate the minimum size to start with: take the rightmost nonzero quad of the base address and convert it to binary in your head or in Windows Calculator. Find the rightmost “1″. The netmask will have to be sufficient to include all of the previous quads (at 8 bits each), plus all the digits in this quad up to its rightmost “1″. That’s the minimum. But it might include some of the trailing zeroes, too.

c) Keep using trial and  error for the netmask until HostMin and HostMax match the IP address range you saw in the Domain Tools report.

Note that final quads of 0 and 255 are reserved, so:

The calculated HostMin will be nnn.nnn.nnn.1, not nnn.nnn.nnn.0
The calculated HostMax will be nnn.nnn.nnn.254 not nnn.nnn.nnn.255

The Hosts/Net line tells you how many users this network might have, which can help decide whether you really want to ban the entire range.

  1. Edit your public_html/.htaccess file to add the “deny from” line:
  1. Go to cPanel > File Manager.
  2. Navigate to the file public_html/.htaccess.
  3. Click on its file name (not the icon next to it).
  4. In the upper right corner of the screen, click Edit File.
  5. Make a backup copy: Copy all the text in the file, and save it into a file on your local computer so you can put it back into .htaccess if something goes wrong.
  6. Backup made? Ok, now you can edit the file. On a blank line in a part of the file that is notbetween HTML-style tags like <tag></tag>, type the line:deny from nnn.nnn.nnn.nnn/nnReplace the nnn’s with the IP/netmask you calculated for this range.Further explanation: some lines of your .htaccess file might be contained between tags that look like HTML tags where the opening tag looks like <tag> and the closing tag looks like </tag>. Insert this new line in a part of the file that is not between any of these pairs of tags.

    Depending on what is in your .htaccess, you might need to use your judgment whether to use the order and allow directives that are also provided by mod_access. See the link to Apache at the top of this article for more information. That is beyond the scope of this article, and it will require your judgment. I’d suggest adding only the “deny from” line at first and seeing if it works as expected. What is expected: you can access your website; most other people can, too; when the denied party tries, your logs will show a result code of 403 Forbidden.

  7. Click Save. If you change your mind and don’t want to save, close the web page in your browser without clicking the Save button.
DMCA.com

Adds