How to hide angular version from wappalyzer?
Asked Answered
F

2

6

for some security reasons I need to hide javascript frameworks version especially angular from wappalyzer but I have no idea!

Fullfledged answered 24/10, 2022 at 13:10 Comment(0)
B
6

remove ng-version attribute from app component to solve the problem.

@Component({
    selector: '[data-app]',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
})
export class AppComponent {
    constructor(private _elementRef: ElementRef) {
    }

    ngOnInit(): void {
        this._elementRef.nativeElement.removeAttribute("ng-version");
    }
}

I think it will help you.

Bearer answered 30/10, 2022 at 12:14 Comment(1)
Relevant thread: github.com/angular/angular/issues/16283Basilicata
N
0

this one is not working could you please suggest

@Component({

    selector: '[data-app]',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
})

export class AppComponent {

    constructor(private _elementRef: ElementRef) {
    }

    ngOnInit(): void {
        this._elementRef.nativeElement.removeAttribute("ng-version");
    }
}
Nobby answered 25/9 at 5:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.