Blocking hackers

Post

Posted
Rating:
#708 (In Topic #143)
Avatar
Standard member
ntsdm is in the usergroup ‘Fan in action’

using the internal security "block ip"

Hi all, it been a long time since i posted and im very sorry… and i guess this is just a heads up for those who are using a bit more security measurs then normal…
it is a bug
if you use the Block ip section of the website it works like a charm
it blocks them all out!  it does need a lil help put in the .htaccess file   like

Code

# BLOCK PROXY VISITS # PerishablePress.com: http://bit.ly/12k6Uo RewriteEngine on RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule .* - [F]
and if you really want to get tough then ad this to your 

Code

header.php
 file…. but also beware that it is very hard to get by this and could very easily block yourself out
To stop tough proxy visits from sites like hidemyass.com, add the following slice of finely craftedPHP to the top of your 

Code

header.php
 file:
 

Code

<?php if(@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1)) die("Proxy access not allowed"); ?>
If you’re not using WordPress, just place the code at the top of your web page(s). No editing is necessary, so just add the code, upload the file, and done. You can check that it works by visiting your site via your favorite proxy service. If it works, access will be denied.

This method works for me on a Linux server running Apache 2.2.3, MySQL 5.0, and PHP 5.2.6. It should work on similar setups as well, but your results may vary depending on your server configuration.



the second measure i dont use because i get the list of several thousand TOR exit nodes and copy and paste that into the block ip section.

now for the BUG
i have found that doing this or even without using either one of them  mentioned above… after i ad my ip block list it works great but if you double check when you go there using a TOR browser you get a bailing out msg and it indicates with the link to you config_editor.php
showing the hackers where to go to keep using sources to hack your system directly

so everyone please be safe
and have fun

Last edit: by Chris Graham

Online now: No Back to the top

Post

Posted
Rating:
#713
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I've fixed the rendering of your post, it was basically struggling with nested <pre> tags, but should be fine now, sorry about that.

Some of the instructions there I think are for Wordpress. It's probably not a great idea to ban proxies because lots of innocent people may be on them. I know AOL used to proxy lots of people, don't know about their current status.

Regarding the bug, I agree with you. It's not a security hole because it's strongly password protected, but if we ban a user we shouldn't be pointing them to the config editor in the error, it's at the very least weird.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#714
Avatar
Standard member
ntsdm is in the usergroup ‘Fan in action’
I have to agree with you that we should not ban proxies on a normal basis.repeat NORMAL
for example... if someone made a portal for a  bitcoin website? and because many of the people that use the website make double and triple accounts.  using the tor network - so obviously they will get the giveaways two three four or more time making it less attractive to the other users.  by blocking the proxies like TOR network you reduce that situation drasticly. it already a well known fact that this is widly practiced in the bitcoin community and it is also a wide practice that on all faucets this is strictly enforced and not only are the proxies but all vpn and everything else possible is banned from their sites where they give free coins to people .
while they abuse it they find its very hard to get thru a few of those walls.
pointing then to a strongly password protected file is still offering directions to where to start hacking.
as we speak there are several website that hare having DDOS or whatnot , many of those website are HUGE  exchanges where thousands of people go to exchange their bitcoins and ect...
i agree that if taking the just precautions that should not happen and pointing them in the direction of where to start isnt good either.
they are a very hard croud
and to say the least "ruthless".
as the old saying goes better safe then sorry right? 
would there be any possible way of sending them to a page that is customizable and not directly linked to 3 or 4 pages of the site where thay actually could do damage?
Online now: No Back to the top

Post

Posted
Rating:
#715
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Fair enough :).

If you make a folder 'critical_errors' and a file '_critical_error.html', then that HTML file gets served instead of the standard messages, and errors are dumped into new files in the folder. This is a new feature in v10 I believe.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#716
Avatar
Standard member
ntsdm is in the usergroup ‘Fan in action’
it does serve a blank whitepage, and filles the folder full of log pages a few hundred. but does not render the page  '_critical_error.html'
in any case it is still 100% better then offering them sensitive links
thanks again

on the site is now showing this error
A language string is missing: ADD_DOWNLOAD
it was not present prior
any idea when we can start seeing the lang files back like in version 9.0.2x...?
its annoying to see this every time a person from a different place is on the site and trying to use their mother language using google translator
Online now: No Back to the top

Post

Posted
Rating:
#722
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
it does serve a blank whitepage

It should be doing a redirect, maybe you have meta redirects disabled somehow.

on the site is now showing this error
A language string is missing: ADD_DOWNLOAD

Are you running RC10, or an older version? I think we fixed this already.

any idea when we can start seeing the lang files back like in version 9.0.2x…?
its annoying to see this every time a person from a different place is on the site and trying to use their mother language using google translator

I'm not sure what you mean. We never distributed translations with ocPortal, it was always necessary to install the packs from community translations - and nothing has changed there except now the community translation is hosted on Transifex instead of Launchpad. All the documentation regarding translations is updated and expanded.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#727
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Slightly related, this may be useful in the .htaccess file too. Blocks some of the well known nefarious bots and site rippers from harvesting email addresses, etc. Will save on bandwidth if any of these are visiting your site too.

Expand: Block Bad Bots Block Bad Bots

Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,830 members
  • Our newest member is Customcollective
Back to Top