일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- mariadb upgrade
- 숫자 3자리(천단위) 마다 콤마 찍기
- 윈도우 환경 아파치 mod_security2 설치
- 우분투 mysql 비밀번호 없이 로그인 될때
- httpd.conf 보안 설정
- PHP 구글 OTP 연동
- modsecurity 설치
- 구글 OTP 인증
- wsl2 우분투에 docker 설치
- html pdf 변환
- 비밀번호정규식
- sha-2 root
- apple push notification service (apns) is changing
- PHP 정규식 예제
- bootstrap
- 비밀번호검증정규식
- usb efi 시스템 파티션 삭제
- 아파치 웹 서버의 정보 숨기기
- (using password: YES)" when trying to connect
- 윈도우 mod_security2
- mod_security2 설치
- php 배열제거
- group_concat 구분자
- php 이미지 url 검증 함수
- 파라미터 & 오류
- javascript
- PHP 구글 OTP 인증
- 자바스크립트비밀번호검증
- mysqldump: Got error: 1045
- bootstrap modal
- Today
- Total
목록전체 글 (290)
투덜이 개발자
라라벨 10 설치composer create-project laravel/laravel:^10.0 laravel10 라라벨 11 설치composer create-project laravel/laravel:^11.0 laravel11
🐳 WSL2 우분투에 Docker 설치 (Docker Desktop 없이)1️⃣ 기존 설치 흔적 제거 (선택)sudo apt remove docker docker-engine docker.io containerd runc2️⃣ 필수 패키지 설치sudo apt updatesudo apt install -y ca-certificates curl gnupg lsb-release3️⃣ Docker 공식 GPG 키 등록sudo mkdir -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 4️⃣ Docker 저장소 추가echo \ "d..
🛡️ 1. Apache 보안 설정 .conf 예시# 파일 위치 예시: /etc/apache2/conf-available/security.conf# 또는 httpd.conf, apache2.conf 등 포함되는 곳에 설정# TRACE 메서드 비활성화TraceEnable Off# 최소한의 Server 헤더만 노출ServerTokens Prod# 오류 페이지 하단 정보 제거ServerSignature Off# mod_security가 설치되어 있는 경우 - 응답 헤더 위장 SecRuleEngine On SecDefaultAction "deny,phase:2,status:403" SecServerSignature "TestServer"# 디렉터리 리스팅 방지 Options -Indexes..
PC 용량이 부족할 때 일반적으로 큰 용량을 차지하는 "pagefile.sys", "hiberfil.sys" 2가지 파일 삭제 방법 https://m.blog.naver.com/myjsh13/223624248811 PC 용량 부족할 때 pagefile.sys와 hiberfil.sys 파일 삭제 방법안녕하세요 상기입니다. 오늘은 PC 용량이 부족할 때 일반적으로 큰 용량을 차지하는 "pagefile.sys...blog.naver.com

적용환경운영체체 : 윈도우 11아파치 버전 : Server version: Apache/2.4.62 (Win64) Apache Lounge VS17 Server built 1. mod_security 설치mod_security-2.9.8-win64-VS17.zip 파일 다운도르다운로드 : https://www.apachelounge.com/download/VS17/modules/mod_security-2.9.8-win64-VS17.zip 압축을 풀어서 - yajl.dll 설치 apache24/bin 디렉토리에 yajl.dll 복사 - mod_security2.so 설치 apache24/modules 디렉토리에 mod_security2.so 복사 2. owasp-modsecurity-crs 설치owasp-..

apache mod rewrite Apache에서 mod_rewrite 모듈이 활성화되어 있는지 확인하려면 아래 방법을 사용하시면 됩니다. 모듈이 활성화 확인Ubuntu/Debian 계열apache2ctl -M | grep rewrite출력에 rewrite_module이 보이면 활성화된 상태입니다: rewrite_module (shared) CentOS/RHEL 계열httpd -M | grep rewrite 모듈이 비활성화된 경우 활성화 방법Ubuntu/Debian 계열sudo a2enmod rewritesudo systemctl restart apache2CentOS/RHEL 계열 보통 /etc/httpd/conf/httpd.conf에서 다음 줄이 주석 처리되어 있다면 해제하면 됩니다:LoadMod..
* 첫번째class ImageValidator { public static function httpImageUrl($url) { if (strpos($url, 'http://') === false and strpos($url, 'https://') === false) { $url = _WEB_BASE_DIR . $url; } return $url; } // 이미지 url 체크 public static function isImageUrlValid($imageUrl): bool { $imageUrl = self::httpImageUrl($imageUrl); // echo "imageUrl : {$imageUrl} "; $headers = @get_headers($imageUrl); ..
PHP 파일 다운로드 함수 "파일을 찾을 수 없습니다."]); exit; } // 파일 크기 미리 가져오기 (최적화) $fileSize = filesize($filePath); // 파일 이름 설정 (제공되지 않으면 파일 경로에서 추출) if ($fileName === null) { $fileName = basename($filePath); } $mimeType = 'application/octet-stream'; // MIME 타입 기본값 설정 if (extension_loaded('fileinfo')) { $finfo = finfo_open(FILEINFO_MIME_TYPE); $detectedType = finfo_file($finfo, $filePath)..