Web Hosting Tutorials http://blog.sgugal.com Website Tools | SEO Tools | Domain Tools Fri, 16 Mar 2007 04:23:09 +0000 http://wordpress.org/?v=2.0.4 en Firefox tweaks. http://blog.sgugal.com/2007/03/16/firefox-tweaks/ http://blog.sgugal.com/2007/03/16/firefox-tweaks/#comments Fri, 16 Mar 2007 04:23:09 +0000 Jason Uncategorized Web Technologies http://blog.sgugal.com/2007/03/16/firefox-tweaks/ Hello,

Some awsome tweaks here for firefix. Just try it and enjoy..

If upgrading from a previous version please to do the following or the extension will now work:
1) Type ‘about:config’ in the location bar and hit enter
2) Paste this in the blank bar or scroll down to find ‘extensions.toolbarcleanup.findbarchanges’
3) Right click on this and select ‘reset’ and restart firefox and extension will work again
Sorry about that, I deleted the file it calls on and I forgot when you upgrade it doesnt remove old entries from about:config.
This extension allows you to tweak various aspects of the browser’s UI.
This extension allows you to do the following via Tools->Extensions->UI Tweaker Options:
- Remove ‘For Internet Explorer Users’ from the Help menu
- Remove ‘Release Notes’ from the Help menu
- Remove ‘Go’ menu
- Remove ‘Read Mail (* new)’ and ‘New Messages…’ from the Tools menu (1.5 Only)
- Remove ‘Web Search’ from the Tools menu
- Remove ‘Bookmark Toolbar Folder’ from the Bookmarks menu (Only if empty)
- Remove the ‘Go’ button
- Remove the toolbar separators
- Remove the forward and back button drop down arrows
- Remove the close button from tabbar (1.5 Only)
- Make the address bar corners slightly rounded
- Hide the Search Bar except for the site icon until mouse hover over
- Multi-row bookmarks toolbar
- Show only icons on the bookmark toolbar
- Make non-selected tabs less visible, making active tabs stand out more
- Remove white line under unfocused tabs
- Remove the focus rings around the tab titles
- Show tab favicon only on selected tab
- Relocate the tabbar to the bottom
- Remove the tabbar close button and place on active or hoverd over tabs (1.5 Only)
- Add separators, bold text on status message and other small changes
- Add a keyword when adding a bookmark
- Move the sidebar to the bottom
- Remove the security padlock icon in the statusbar
- Remove the RSS Feed icon from the location bar
- Remove the Min/Max/Close buttons while in Full Screen mode
- Remove the bookmark sidebar search bar
- Remove the location bar drop down arrow

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.4 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed a spelling error in description
- Updated the extension description
- Tweaked a bunch of hack descriptions
- Changed any instance of address bar to location bar
- Added a hack to remove the security padlock icon in the statusbar
- Added a hack to remove the RSS Feed icon from the location bar
- Added a hack to remove the Min/Max/Close buttons while in Full Screen mode
- Added a hack to remove the Bookmark Sidebar Search Bar
- Added a hack to remove the Location Bar drop down arrow
- Split the Find Bar hack into 5 separate hacks:
- Remove the findbar borders
- Widen the findbar input field
- Add a separator between the close button and find:
- Add a separator between highlight all and the match case check box
- Make the status messages bold/input field light red when phrase not found

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.3 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Added icons in the options menu
- Some spelling error corrections

Hacks that are missing/broke from the latest 1.6.3 version
- Multi-row bookmarks toolbar isn’t working for some
- No combined stop/reload button
- Missing Add ‘Print’ to right-click context menus, allowing users to print via the context menus

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.2 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed bug in which only the separator and not the bookmarks toolbar folder was removed from the bookmarks menu

Hacks that are missing/broke from the latest 1.6.2 version
- Multi row bookmarks toolbar isn’t working for some
- No combined stop/reload button
- Missing Add ‘Print’ to right-click context menus, allowing users to print via the context menus
- Needs icons in the options dialog

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.1 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed bug in which the remove drop arrows for back/forward buttons and round addressbar hacks were swaped in the options dialog.
- Added back hack for tab close button on tabs (1.5 Only)
- Added back hack for removing Read mail from the Tools menu (1.5 Only)
- Tweaked the extension’s description
- Tweaked a couple hack descriptions
- Added a contributor (Pike) to the about dialog

Hacks that are missing/broke from the latest 1.6.1 version
- Multi row bookmarks toolbar isn’t working for some
- No combined stop/reload button
- Missing Add ‘Print’ to right-click context menus, allowing users to print via the context menus
- Needs icons in the options dialog

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6 - Works Firefox 1.5, branch and trunk nightlies.
Changelog:
- Added a working options dialog (Everything is customizeable now!!!)
- Renamed the extension to UI Tweaker (Did not change the guid so no need to uninstall and install this version
- Added hack for icons only on the bookmark toolbar
- Added hack for relocating the tabbar on the bottom
- Added hack for disabling autocomplete in the search bar, location bar and html input fields
- Removed hack for removing ‘Read Mail (* New)’ and ‘New Message…’ from Tools menu (No longer needed since this is in the branch/trunk nightlies….Please let me know if this is needed for 1.5.0.*)
- Added hack to remove the bookmark toolbar folder from bookmarks menu (will only work if empty)
- Added hack to remove the back/forward drop down arrows
- Added hack to add a keyword when adding a bookmark
- Added hack to move the sidebar to the bottom

Hacks that are missing/broke from the latest 1.6 version
- When make non selected tabs less visible + remove white line under tab are used together the non select tabs are pink. but if you use the remove close tab button then everything is fine
- Multi row bookmarks toolbar isn’t working for some
- No combined stop/reload button
- Missing Add ‘Print’ to right-click context menus, allowing users to print via the context menus

Enjoy…

Jason.

]]>
http://blog.sgugal.com/2007/03/16/firefox-tweaks/feed/
Types of Proxies http://blog.sgugal.com/2007/01/30/types-of-proxies/ http://blog.sgugal.com/2007/01/30/types-of-proxies/#comments Tue, 30 Jan 2007 20:46:14 +0000 Admin Hacking Truths Server Security Web Technologies http://blog.sgugal.com/2007/01/30/types-of-proxies/ Types of Proxies :

1. Anonymous :  Any proxy which does not spill information that could identify the real IP of the user.

2. SSL (HTTPS)  : These proxies support SSL and with it are capable of logging into most sites. While connected to a host through SSL the proxy is always considered to be anonymous.

3. Transparent :  Any proxy which through any number of factors spills the users IP to the target webserver.

4. Filtered : These proxies are filtered to remove Gateway duplicates .

]]>
http://blog.sgugal.com/2007/01/30/types-of-proxies/feed/
NASA Planning to setup City on the moon till 2024 .. http://blog.sgugal.com/2007/01/21/62/ http://blog.sgugal.com/2007/01/21/62/#comments Sun, 21 Jan 2007 21:34:20 +0000 Admin Uncategorized Fun Black Holes http://blog.sgugal.com/2007/01/21/62/ I am planning to get some land on Mars now . Not joking . NASA planning to setup a City on the moon till 2024. Crews of four astronauts are expected to work on the base, a week at a time, beginning around 2020. Get full article here .  

]]>
http://blog.sgugal.com/2007/01/21/62/feed/
How do I secure the pnTemp folder with .htaccess. http://blog.sgugal.com/2006/12/31/how-do-i-secure-the-pntemp-folder-with-htaccess/ http://blog.sgugal.com/2006/12/31/how-do-i-secure-the-pntemp-folder-with-htaccess/#comments Sun, 31 Dec 2006 03:06:04 +0000 Alex P. Cpanel Hosting http://blog.sgugal.com/2006/12/31/how-do-i-secure-the-pntemp-folder-with-htaccess/ If you are getting following warnings in posnuke admin panel

Notice: register_globals is on!
Notice: /pnTemp-folder should be secured with .htaccess.

Do the following step to resolve it

1) In your .htaccess file in the root of your PN installation, add:

Code

php_flag register_globals off


2) My pnTemp folder’s .htaccess file contains this:
Code

# File: $Id: .htaccess,v 1.2 2004/06/29 04:07:40 larry Exp $ # ———————————————————————- # Purpose of file: block any web access to files stored under # the pnTemp directory # ———————————————————————- SetEnvIf Request_URI .css$” object_is_css=css SetEnvIf Request_URI .js$” object_is_js=js Order deny,allow Deny from all Allow from env=object_is_css Allow from env=object_is_js

]]>
http://blog.sgugal.com/2006/12/31/how-do-i-secure-the-pntemp-folder-with-htaccess/feed/
How to block IP address on server using Iptables or Ipchains ? http://blog.sgugal.com/2006/12/29/how-to-block-ip-address-on-server-using-iptables-or-ipchains/ http://blog.sgugal.com/2006/12/29/how-to-block-ip-address-on-server-using-iptables-or-ipchains/#comments Fri, 29 Dec 2006 22:54:10 +0000 Alex P. Server Security http://blog.sgugal.com/2006/12/29/how-to-block-ip-address-on-server-using-iptables-or-ipchains/ Greetings,

If you want to block access to your server for whatever reason, you will need to log into the shell as root. Your server should either have ipchains or iptables to help accomplish this.

In this example, the attacking IP is 192.168.56.210 .

If you are using ipchains, type “ipchains -A input -j DENY -p all -l -s 192.168.56.210/32″

If you are using iptables, type “iptables -A INPUT -s 192.168.56.210/32 -j DROP”

If you just want to block access to one port from an ip :

iptables -A INPUT -s 192.168.56.210/32 -p tcp –destination-port 23 -j DROP

The above would drop all packets from 192.168.56.210/32 to port 23 (telnet) on the server.

Alex P.

]]>
http://blog.sgugal.com/2006/12/29/how-to-block-ip-address-on-server-using-iptables-or-ipchains/feed/
How to install ASP (Apache::ASP) on cPanel http://blog.sgugal.com/2006/12/29/how-to-install-asp-apacheasp-on-cpanel/ http://blog.sgugal.com/2006/12/29/how-to-install-asp-apacheasp-on-cpanel/#comments Fri, 29 Dec 2006 22:24:43 +0000 Alex P. Linux Apache http://blog.sgugal.com/2006/12/29/how-to-install-asp-apacheasp-on-cpanel/ Greeting’s

1. Login to your server via SSH as root.
(If you disabled root logins login with your other username, and su to root)
2. Type: wget http://layer1.cpanel.net/apache-asp.sea

3. Type: chmod 700 apache-asp.sea

4. Type: ./apache-asp.sea
You should see this going through some installation processes and things. Once it gets toward the end, it’ll say that you may need to restart Apache. Don’t worry about that yet.
Once that’s done, you’ll need to setup Apache to work with Apache::ASP:

5. Type: pico /usr/local/apache/conf/httpd.conf

6. Find This:

Order allow,deny
Deny from all
Satisfy All

7. Right below there, add:
## Apache::ASP Install Configuration

PerlModule Apache::ASP

SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp

8. Next, find the section that looks like:

DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp blah blah blah blah …..

9. Add in there index.asp and default.asp so those are included as directory defaults(pages that load when no filename is given for a directory).

10. Save and exit.
CTRL-x then Y then enter

11.Now restart httpd servcie

You are done! ASP For APACHE Is installed.

Alex P

]]>
http://blog.sgugal.com/2006/12/29/how-to-install-asp-apacheasp-on-cpanel/feed/
Email account disk usage incorrect http://blog.sgugal.com/2006/12/29/email-account-disk-usage-incorrect/ http://blog.sgugal.com/2006/12/29/email-account-disk-usage-incorrect/#comments Fri, 29 Dec 2006 02:11:10 +0000 Alex P. Cpanel Hosting web Hosting EXIM VPS / OpenVZ http://blog.sgugal.com/2006/12/29/email-account-disk-usage-incorrect/ Greetings ,

You can use the following command to remove the belows files from all users account on server.

find /home/*/.cpanel-datastore/ -name “diskusage_*” | xargs rm -f
find /home/*/mail/ -name maildirsize | xargs rm -f

Alex

]]>
http://blog.sgugal.com/2006/12/29/email-account-disk-usage-incorrect/feed/
What is Spam Assassin and How it is work ? http://blog.sgugal.com/2006/12/26/what-is-spam-assassin-and-how-it-is-work/ http://blog.sgugal.com/2006/12/26/what-is-spam-assassin-and-how-it-is-work/#comments Tue, 26 Dec 2006 23:30:03 +0000 Alex P. Cpanel Hosting Linux web Hosting EXIM VPS / OpenVZ http://blog.sgugal.com/2006/12/26/what-is-spam-assassin-and-how-it-is-work/ What is Spam Assassin ?
The SpamAssassin system is software for analyzing email messages, determining how likely they are to be spam, and reporting its conclusions. It is a rule-based system that compares different parts of email messages with a large set of rules. Each rule adds or removes points from a message’s spam score. A message with a high enough score is reported to be spam.
Spam Assassin is a e-mail spam filtering system that sits side by side with account with us to help block, mark or filter out mail you don’t want.

How do I access Spam Assassin?
First thing you will want to do is log into your cPanel. From there, under the “Mail” box look at the nine a link that reads “Spam Assassin”. From here it will tell you if Spam Assassin is currently enabled or disabled. Clicking the boxes to enable or disable Spam Assassin is how you can turn it on or off. To configure the Spam Assassin settings click the button that reads: “Configure Spam Assassin (required to rewrite subjects)”

How do I configure Spam Assassin?
If you do not know what it is you are looking at, the next screen could be a little confusing. To help you understand here’s a break down of what you should see on the screen and what do do with it:

required_hits - The number of e-mails received before marked as spam.
rewrite_subject - The tells Spam Assassin if it should rewrite your subject line or not as you define. (1 is yes and 0 is no)
subject_tag - What the spam is marked with in the subject line. (usually ***SPAM*** or something else that could be picked up by your own mail filters on your mail client of choice)
blacklist_from - An e-mail address you definitely want to be marked as spam. (you could also use *@something.com to get every email from that address filtered)
whitelist_from - An e-mail address you definitely do NOT want to be marked as spam. (you could also use *@something.com to get every email from that address NOT filtered)

Once you’re done, just hit save and whatever you defined on the earlier page will now be in effect. If you picked to rewrite the subject, then you could now go into your mail client and write a new “rule” that would filter all mail with “***SPAM***” to go into a SPAM folder so that you could check it from time to time making sure you did not get any false positives.

How do I use the Spam Box ?
You can turn your spam box enable and disable from the same page as Spam Assassin. It’s just that easy! With the recent upgrades to cPanel, the TotalChoice Hosting team has been paying more attention to the users of Spam Assassin.

In the previous build you would need to use a imap client to get to your spam box.
Well not anymore. You can create a “new” e-mail account that has precisely the same settings as your e-mail account, but add: “/spam” to the end of the e-mail account user name. This will retrieve only your Spam Box mail.

In order for this to be useful, you will want to set up your e-mail client to deliver this Spam Box mail to a special folder (perhaps called spam?) automatically.

How spamassassin works

Check out its feature on how it works.

–> There are several ways that SpamAssassin makes up its mind about a
message:
–> The message headers can be checked for consistency and adherence to
Internet standards (e.g., is the date formatted properly?).
–> The headers and body can be checked for phrases or message elements
commonly found in spam (e.g., “MAKE MONEY FAST” or instructions on how to be
removed from future mailings)-in several languages.
–> The headers and body can be looked up in several online databases that
track message checksums of verified spam messages.
–> The sending system’s IP address can be looked up in several online lists
of sites that have been used by spammers or are otherwise suspicious.
–> Specific addresses, hosts, or domains can be blacklisted or whitelisted.
A whitelist can be automatically constructed based on the sender’s past
history of messages.
–> SpamAssassin can be trained to recognize the types of spam that you
receive by learning from a set of messages that you consider spam and a set
that you consider non-spam. (SpamAssassin and the spam-filtering community
often refer to non-spam messages as ham. )
–> The sending system’s IP address can be compared to the sender’s domain
name using the Sender Policy Framework (SPF) protocol (http://spf.pobox.com)
to determine if that system is permitted to send messages from users at that
domain. This feature requires SpamAssassin 3.0.
–> SpamAssassin can privilege senders who are willing to expend some extra
computational power in the form of Hashcash (http://www.hashcash.org).
Spammers cannot do these computations and still send out huge amounts of
mail rapidly. This feature requires SpamAssassin 3.0.

Most of SpamAssassin’s behavior is controlled through a systemwide
configuration file and a set of per-user configuration files. The per-user
configuration can also be stored in an SQL database.

How to Configure it ? : -
——————-

You can easily customize how SpamAssassin tags and identifies spam by
creating a spamassassin/user_prefs file. You can customize the number of
“spam points” required to identify a message as spam, create new rules, and
re-weight existing rules. Here is a sample user_prefs file. It raises the
threshold for identifying spam from 5 to 6, disables including spam warnings
in the subject and body, reweights a known rule, and adds several blacklist,
whitelist, and header rules.

Listing 1. A typical user_prefs configuration file

================================================================

#How many hits before a mail is considered spam?
required_hits 6

#Don’t mangle the messages so badly
rewrite_subject 0
use_terse_report 1

#whitelist and blacklist
whitelist_from *@www.sgugal.com
blacklist_from annoying-person@xyz.com

#reweight an existing rule
score BASE64_ENC_TEXT 3

#add some new rules
header KNOWN_LIST List-Id =~ /a-mailing-list-i-like/
score KNOWN_LIST -3

body EVITE /This invitation was sent to you by .* using Evite/
describe EVITE Looks like an eVite
score EVITE -3

Alex

]]>
http://blog.sgugal.com/2006/12/26/what-is-spam-assassin-and-how-it-is-work/feed/
How to convert mbox to maildir http://blog.sgugal.com/2006/12/26/how-to-convert-mbox-to-maildir/ http://blog.sgugal.com/2006/12/26/how-to-convert-mbox-to-maildir/#comments Tue, 26 Dec 2006 23:25:30 +0000 Alex P. Cpanel Hosting Linux VPS / OpenVZ http://blog.sgugal.com/2006/12/26/how-to-convert-mbox-to-maildir/ Greetings Guys ,

Dont worry about converting to MailDir on server …follow this ….

A) /scripts/convert2maildir

choose option 1.. Backup all mail folders on this server
3.. Start maildir conversion process

B) /scripts/courierup –force

C) /scripts/eximup –force

D) /scripts/upcp –force

E) /scripts/convert2maildir

choose option 3… to convert partially converted mail accounts

Alex

]]>
http://blog.sgugal.com/2006/12/26/how-to-convert-mbox-to-maildir/feed/
How to check DDos attack on server ? http://blog.sgugal.com/2006/12/26/how-to-check-ddos-attack-on-server/ http://blog.sgugal.com/2006/12/26/how-to-check-ddos-attack-on-server/#comments Tue, 26 Dec 2006 23:23:30 +0000 Alex P. Server Security http://blog.sgugal.com/2006/12/26/how-to-check-ddos-attack-on-server/ A quick and useful command for checking if a server is under ddos is:

netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

That will list the IPs taking the most amounts of connections to a server. It is important to remember that the ddos is becoming more sophisticated and they are using fewer connections with more attacking ips. If this is the case you will still get low number of connections even while you are under a DDOS.

Another very important thing to look at is how many active connections your server is currently processing.

netstat -n | grep :80 |wc -l

netstat -n | grep :80 | grep SYN |wc -l

The first command will show the number of active connections that are open to your server. Many of the attacks typically seen work by starting a connection to the server and then not sending any reply making the server wait for it to time out. The number of active connections from the first command is going to vary widely but if you are much above 500 you are probably having problems. If the second command is over 100 you are having trouble with a syn attack.

To Block a certain IP address that on server .Please use following commands

—————–command——————————

route add ipaddress reject

for example route add 192.168.0.168 reject

You can check whether given IP is blocked on server by using following command

route -n |grep IPaddress

—————–command——————————

OR

use follwoing command to block a ip with iptables on server
—————–command——————————
iptables -A INPUT  -s IPADRESS -j DROP/REJECT

service iptables restart

service iptables save

—————–command——————————

Then KILL all httpd connection and restarted httpd service by using following command

killall -KILL httpd

service httpd startssl
Regard’s

Alex

]]>
http://blog.sgugal.com/2006/12/26/how-to-check-ddos-attack-on-server/feed/