• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

IP Based User Banning.

Status
Not open for further replies.

arsalancfc

Chevereto Member
Admins can view and
ban user ips in the
Admin Panel. 9gag also has this feature. This will stop a spammer to come on site and create new accounts again and again.
 
Admins can view and
ban user ips in the
Admin Panel. 9gag also has this feature. This will stop a spammer to come on site and create new accounts again and again.
You should ban them on the server level, not within the program itself.

Edit your main .htaccess and input something along the lines of this.
deny from 127.0.0.1
Changing the number of course to the IP. Each line is a new deny from.
 
You should ban them on the server level, not within the program itself.

Edit your main .htaccess and input something along the lines of this.
deny from 127.0.0.1
Changing the number of course to the IP. Each line is a new deny from.
But how will i know my users ip?
 
But how will i know my users ip?
View one of their uploaded images, and you'll see their IP Address in the information bit.

Note: You have to logged in as Admin to view this information.

4709fd3f0726.png
 
Is there any way i can test this? may be i should ban my ip for test?
You could do this.... However, PLEASE make sure you have another way to access your site (obviously using another IP) and removing the ban line, otherwise that would be embarrassing 😛 lol
Just as a precaution more than anything else.

Also note that I'm pretty sure there is more than one line required.
Something like:

order allow,deny
deny from 127.0.0.1 (Replace with your IP)
allow from all

I have never been able to get this to work on my server, not sure why? I've tried putting my own IP Address, but I've still been able to access the site and upload files.
Maybe I'm putting it in the wrong place?? Or maybe it's conflicting with another rule?? I'm not too sure.
 
I have never been able to get this to work on my server, not sure why? I've tried putting my own IP Address, but I've still been able to access the site and upload files.
Maybe I'm putting it in the wrong place?? Or maybe it's conflicting with another rule?? I'm not too sure.
Works wonders for me.

I block large sets of Chinese IP's mostly related to search Engines. Skip the whole order allow things. Just put them at the end of your .htaccess file and it should work fine. Though there are better ways to manage ip logs if you have complete access to your server.
 
Works wonders for me.

I block large sets of Chinese IP's mostly related to search Engines. Skip the whole order allow things. Just put them at the end of your .htaccess file and it should work fine. Though there are better ways to manage ip logs if you have complete access to your server.
Give me your site url i want to test it.with u. i will upload a photo and than u ban my ip 😛
 
Well, even if the PHP ban is not the most complete solution it also needs to be added to avoid registration, upload, etc. So it will be added.
 
Status
Not open for further replies.
Back
Top