2005年12月13日

ログイン関係のIP制限方法

ログイン関係のIP制限方法
FTP、SSH、Telnetなどのログインする処理でのIP制限をしたい場合は
/etcにあるhosts.allowとhosts.denyを使う。

使い方は
hosts.denyで「ALL:ALL」としてまず全ユーザを拒否。
それからhosts.allowで許可するIPが「123.456.789.123」の場合
「ALL:123.456.789.123」とする
FTPは全ユーザいいけどSSHは「123.456.789.123」のみの場合
sshd:123.456.789.123
vsftpd:ALL
とする。

記述ルールは
サービス名:制限するIP

2005年12月 8日

osCommerce商品登録画面で商品名と型番で検索

admin/categories.phpを変更。

where p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id and ( pd.products_name like '%" . $HTTP_GET_VARS['search'] . "%' or p.products_model like '%" . $HTTP_GET_VARS['search'] . "%' ) order by pd.products_name");

2005年12月 4日

Mail relay testing

Mail relay testing

http://www.abuse.net/relay.html