Post by T.B.Ibink » Fri Jul 17, 2015 8:09 pm

Hello,

I am wondering how I can block the spam on my website.
Does anyone know how to do this?

I am using OC 1.5.6.4

Attachments

Schermafbeelding 2015-07-09 om 05.57.07.png

Schermafbeelding 2015-07-09 om 05.57.07.png (17.99 KiB) Viewed 1966 times


Active Member

Posts

Joined
Wed Jul 24, 2013 7:36 pm

Post by IP_CAM » Sat Jul 18, 2015 12:22 am

just add such Fellows, or their Hosters entire IP-Range, to your NO-GO-LIST:
in your .htaccess file.

Code: Select all

<Files *>
order allow,deny
allow from all
deny from 104.254.244.0/104.254.247.255
i.E. for the floating-share-buttons.com
by use of this fine Tool:
http://www.gaijin.at/en/dlet.php

good Luck
Ernie
ipc.li/shop/

see here one of my Files, for some Site (!!! IT'S NOT AN OC-SPECIFIC FILE !!!)
it could be made MORE professional, I KNOW, but it works SWELL!
http://ipc.li/os/1_htaccess.txt

Attachments

block_access_to_site.jpg

Block access to Site by .htaccess - block_access_to_site.jpg (90.68 KiB) Viewed 1955 times


I don't use Forum Mail, to reach me, contact: jti@jacob.ch
-
Server Q & A Basic Information on Code + Settings
http://www.everyauction.info/serverinfo.html
Demoversion OpenCart LIGHT v.1.5.6.5
http://www.jti.li/shop/
1'400+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
-
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Dhaupin » Mon Jul 20, 2015 10:30 pm

The best bet is like Ernie says -- block hosting companies by their ASN, although you dont need software to net-probe http://network-tools.com/

So ASN level locks mean denying every single IP they own. Here is a tool to do that: https://www.enjen.net/asn-blocklist/ Now you need a list of ASN's of bad hosts. These are hosts that operate known spam networks. Here is a starting list:
  • AS4134 ChinaNet
  • AS4837 China Unicom Backbone
  • AS4538 China Education and Research Network Center
  • AS9808 Guangdong Mobile Com
  • AS9394 China TieTong Telecommunications Corporation
  • AS49120 Gorset Ltd
  • AS44387 PE Radashevsky Sergiy Oleksandrovich
  • AS47142 PP Andrey Kiselev
  • AS15895 Kyivstar PJSC
  • AS50915 S.C. Everhost S.R.L.
  • AS9829 National Internet Backbone
  • AS17974 PT Telekomunikasi Indonesia
  • AS26347 Dream Network LLC
  • AS43350 NFOrce Entertainment BV
  • AS63008 Contina
  • AS53264 Continuum Data Centers, LLC.
  • AS36352 ColoCrossing
  • AS16276 OVH SAS
  • AS57858 Fiber Grid OU
  • AS53889 Micfo
  • AS62904 Eonix Corporation 1
  • AS30693 Eonix Corporation 2
  • AS55286 B2 Net Solutions Inc.
  • AS18978 Enzu Inc
  • AS15003 Nobis Tech Group
  • AS29761 Quadranet
So lets use OVH. They are terrible, annoying, blatant spam hosts. https://www.enjen.net/asn-blocklist/ind ... e=htaccess Put that in your htaccess to block them all. Alternatively, if you operate a VPS with APF firewall, you can regenerate it as a deny_hosts ruleset and put it into the /etc/apf/deny_hosts.rules file. APF is a bit quicker than htaccess since it uses iptables and is able to block the IPs at a "global" level. Htaccess is just for the APP and child folder schema.

Blocking all these ASN's will reduce your spam by loads.

Althernatively if you run 1.5.6x you can try the stopforumspam blocker mod here http://forum.opencart.com/viewtopic.php ... 3&p=509025 but it doesn't work with IPV6 yet. The owner of SFS has been working on it, dunno when it will support them.

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA
Who is online

Users browsing this forum: No registered users and 3 guests