Web Development

Web site development tips & tricks.
[Random entry]

 tags  gallery  RSS

24.7.2022 14:06:39

A special file system structure made with intention of breaking bad bots

It is made in the way that causes the bot to browse recursive symlink structure slowing it down in the process where it's left preocuppied with that and that takes long enough before it can traverse the other content of the site. An example file structure is shown below, the directory containing such items must be excluded using robots.txt and link must not be shown to regular visitors and proper bots (hidden, witdth/height with value of 0, nofollow tag, etc)

description.txt  
files/description.txt  
files/misc/description.txt  
files/misc/readme.txt  
files/misc/test -> ../..
files/readme.txt  
readme.txt  
secret/description.txt  
secret/less/description.txt  
secret/less/readme.txt  
secret/less/stuff -> ../more
secret/more -> ..
secret/readme.txt  
secret/test.c  
secret/test.exe


reposted by raumfahrtagentur
24.6.2022 09:07:16 reposted from test

Workaround for oversized group popup menu when following of too many groups

Adding this to CSS code for group/user/etc styles would just do that.

@media screen and (min-width:1024px) {
.navbar-dropdown {
overflow: auto;
max-height: calc(100vh - 3.25rem)
}
}

Edit: updated code to be compatible with the menu shown for smaller screens, should no longer affect items shown in this menu.

 

Timeline speed: 2.00 posts per month

 

You have reached the end...

THE END

login