I don't want see or seed anything about him. What should I do?
Try to set the user dictionary that you don't want see or seed to not writable, but I don't know whether ZeroNet will try again frequently and take a large number of resources.
Each user has a folder in each hub, am I going to modify all folder about him? @l5h5t7
I think that you choose incorrect repo for your issue
https://github.com/HelloZeroNet/ZeroMe
and feature request - "add ban button" - good idea..
@iShift Thanks, https://github.com/HelloZeroNet/ZeroMe/issues/27
Block someone in zerome code:
import os
import sys
help_text = '''
Save this file to 'ZeroBundle/Python/block_tool.py'
Useage:
python block_tool.py site_hash user_hash
example:
python block_tool.py 1KNmG5rJUGhgUJGFbLkv2B5isaqu9PrZqi 17zvGKq1Vft7Fp8HhqgD7rpqcGi5wDDSQ4
programmer:
cxg2014, 12hlearn, [email protected]
'''
def make_block_file(filename):
if os.path.isfile(filename):
os.remove(filename)
os.mkdir(filename)
open(filename + '/blocked', 'w').write('blocked')
def block(hub, addr):
if hub is None or addr is None:
print('Error!')
print(help_text)
return
filename = "../ZeroNet/data/{0}/data/users/{1}/%s.json".format(hub, addr)
content = filename % "content"
data = filename % "data"
make_block_file(content)
make_block_file(data)
os.system('python ../ZeroNet/zeronet.py dbRebuild 1MeFqFfFFGQfa1J3gJyYYUvb5Lksczq7nH')
print("Successful block " + addr + ' and rebuild DB')
if __name__ == '__main__':
if len(sys.argv) == 3:
block(sys.argv[1], sys.argv[2])
else:
print(help_text)
Most helpful comment
I think that you choose incorrect repo for your issue
https://github.com/HelloZeroNet/ZeroMe
and feature request - "add ban button" - good idea..