How to secure your osCommerce 2.2 site.
#641
Posted 27 December 2011, 19:44
http://addons.oscommerce.com/info/8283
Unpack the zip file into your hardrive and open the readme.htm file which has all the instructions in it of how to install.
For a list of other recommended addons for versions of osCommerce earlier than 2.3, see this link
http://forums.oscommerce.com/topic/375288-updated-security-thread/
- Another discussion about infected files ::here::
- A discussion on file permissions ::here::
- Site hacked? Should you upgrade or not, some thoughts ::here::
- Ignore this link - just a honeypot site to test my ideas out for osC_Sec and allow the site to be picked up by attackers.
- Fix the admin login bypass exploit here
#642
Posted 03 January 2012, 03:03
The problem is that the catalog i am using for a site didn't have any .httaccess file which is the file where we add all the contents to secure ourselves from ip attacks and to make admin site secure.
I tried to use some one's contents and added the long script from "Deny domain access to spammers httaccess script" contribution but it doesn't work. Thats why i am asking what is the best solution for that.
Thanks so much
geoffreywalton, on 27 December 2011, 10:50, said:
Sorry
G
#643
Posted 07 January 2012, 18:51
#644
Posted 18 January 2012, 16:39
Warning: include(includes/secret.php) [function.include]: failed to open stream: No such file or directory in/home/freeus78/public_html/admin/includes/application_top.php on line 48
Warning: include() [function.include]: Failed opening 'includes/secret.php' for inclusion (include_path='.:/usr/local/php53/pear') in/home/freeus78/public_html/admin/includes/application_top.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/freeus78/public_html/admin/includes/application_top.php:48) in /home/freeus78/public_html/admin/includes/functions/sessions.php on line 102
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/freeus78/public_html/admin/includes/application_top.php:48) in /home/freeus78/public_html/admin/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/freeus78/public_html/admin/includes/application_top.php:48) in/home/freeus78/public_html/admin/includes/functions/general.php on line 22
i also tried installing security pro but couldnt.it says
Find ...
if ($request_type == 'NONSSL') {
Add immediately ABOVE ...
// Security Pro by FWR Media
include_once DIR_WS_MODULES . 'fwr_media_security_pro.php';
$security_pro = new Fwr_Media_Security_Pro;
// If you need to exclude a file from cleansing then you can add it like below
//$security_pro->addExclusion( 'some_file.php' );
$security_pro->cleanse( $PHP_SELF );
// End - Security Pro by FWR Media
That's it .. all installed!
can someone show me exactly how it seems in code page are there spaces between sentences and at the bottom and the top.Thanks
Edited by adobe19, 18 January 2012, 16:51.
#645
Posted 18 January 2012, 16:46
You failed to upload the files included in the add on to the appropriate directories.
Chris
:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:
:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:
#646
Posted 19 January 2012, 01:23
You have either not uploaded it or it is in the wrong place.
HTH
G
Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.
For links mentioned in old answers that are no longer here follow this link Useful Threads.
If this post was useful, click the Like This button over there ======>>>>>.
#647
Posted 28 January 2012, 00:22
security pro
before
// set php_self in the local scope
if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
if ($request_type == 'NONSSL') {
define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
} else {
define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
}
after
// set php_self in the local scope
if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
// Security Pro by FWR Media
include_once DIR_WS_MODULES . 'fwr_media_security_pro.php';
$security_pro = new Fwr_Media_Security_Pro;
// If you need to exclude a file from cleansing then you can add it like below
//$security_pro->addExclusion( 'some_file.php' );
$security_pro->cleanse( $PHP_SELF );
// End - Security Pro by FWR Media
if ($request_type == 'NONSSL') {
define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
} else {
define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
}
-----------------------------------------------
before
// include the list of project filenames
require(DIR_WS_INCLUDES . 'filenames.php');
// include the list of project database tables
require(DIR_WS_INCLUDES . 'database_tables.php');
after
// include the list of project filenames
require(DIR_WS_INCLUDES . 'filenames.php');
// IP Trap V5
include(DIR_WS_INCLUDES . 'secret.php');
// include the list of project database tables
require(DIR_WS_INCLUDES . 'database_tables.php');
------------------------------------------
#648
Posted 28 January 2012, 21:52
#649
Posted 29 January 2012, 03:53
kind regards,
Sarah
#650
Posted 29 January 2012, 10:10
Download and read the installation instrutoins for the contributions.
Then you can decide if you want to install them.
Cheers
G
Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.
For links mentioned in old answers that are no longer here follow this link Useful Threads.
If this post was useful, click the Like This button over there ======>>>>>.
#651
Posted 29 January 2012, 10:11
adobe19, on 28 January 2012, 21:52, said:
If it was importnt the installation instructions would have said so.
To learn more aout php look at w3schools.com
HTH
G
Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.
For links mentioned in old answers that are no longer here follow this link Useful Threads.
If this post was useful, click the Like This button over there ======>>>>>.
#652
Posted 29 January 2012, 23:22
geoffreywalton, on 29 January 2012, 10:10, said:
Download and read the installation instrutoins for the contributions.
Then you can decide if you want to install them.
Cheers
G
Thanks for your response. I'll review the rest of them. I ran through the process in a previous version but have since installed the new one.
thanks,
Sarah














