Invalid HTTP_HOST header: 'www.howefeelin.com'. You may need to add 'www.howefeelin.com' to ALLOWED_HOSTS.
Request Method: | GET |
---|---|
Request URL: | https://www.howefeelin.com/ |
Django Version: | 4.1.5 |
Exception Type: | DisallowedHost |
Exception Value: | Invalid HTTP_HOST header: 'www.howefeelin.com'. You may need to add 'www.howefeelin.com' to ALLOWED_HOSTS. |
Exception Location: | /var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages/django/http/request.py, line 148, in get_host |
Raised during: | aidetector.views.index |
Python Executable: | /var/www/detecting-ai/myprojectenv/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/var/www/detecting-ai', '/var/www/detecting-ai/myprojectenv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages'] |
Server time: | Thu, 28 Mar 2024 18:11:08 +0000 |
/var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | DisallowedHost("Invalid HTTP_HOST header: 'www.howefeelin.com'. You may need to add 'www.howefeelin.com' to ALLOWED_HOSTS.") |
get_response | <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner> |
request | <WSGIRequest: GET '/'> |
/var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages/django/utils/deprecation.py
, line 135, in __call__
def __call__(self, request):
# Exit out to async mode, if needed
if self._is_coroutine:
return self.__acall__(request)
response = None
if hasattr(self, "process_request"):
response = self.process_request(request)…
response = response or self.get_response(request)
if hasattr(self, "process_response"):
response = self.process_response(request, response)
return response
async def __acall__(self, request):
Variable | Value |
---|---|
request | <WSGIRequest: GET '/'> |
response | None |
self | <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner> |
/var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages/django/middleware/common.py
, line 48, in process_request
user_agent = request.META.get("HTTP_USER_AGENT")
if user_agent is not None:
for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
if user_agent_regex.search(user_agent):
raise PermissionDenied("Forbidden user agent")
# Check for a redirect based on settings.PREPEND_WWW
host = request.get_host()…
must_prepend = settings.PREPEND_WWW and host and not host.startswith("www.")
redirect_url = ("%s://www.%s" % (request.scheme, host)) if must_prepend else ""
# Check if a slash should be appended
if self.should_redirect_with_slash(request):
path = self.get_full_path_with_slash(request)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/'> |
self | <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner> |
user_agent | 'claudebot' |
/var/www/detecting-ai/myprojectenv/lib/python3.8/site-packages/django/http/request.py
, line 148, in get_host
msg = "Invalid HTTP_HOST header: %r." % host
if domain:
msg += " You may need to add %r to ALLOWED_HOSTS." % domain
else:
msg += (
" The domain name provided is not valid according to RFC 1034/1035."
)
raise DisallowedHost(msg)…
def get_port(self):
"""Return the port number for the request as a string."""
if settings.USE_X_FORWARDED_PORT and "HTTP_X_FORWARDED_PORT" in self.META:
port = self.META["HTTP_X_FORWARDED_PORT"]
else:
Variable | Value |
---|---|
allowed_hosts | ['detecting-ai.com', 'localhost', '35.239.69.105', '127.0.0.1'] |
domain | 'www.howefeelin.com' |
host | 'www.howefeelin.com' |
msg | ("Invalid HTTP_HOST header: 'www.howefeelin.com'. You may need to add " "'www.howefeelin.com' to ALLOWED_HOSTS.") |
port | '' |
self | <WSGIRequest: GET '/'> |
[unable to retrieve the current user]
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '44.195.47.227' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86b994ba2f770f81-EWR' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'www.howefeelin.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.195.47.227, 172.70.110.56' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '172.70.110.56' |
PATH_INFO | '/' |
QUERY_STRING | '' |
RAW_URI | '/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.howefeelin.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/21.2.0' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f1c4c0800d0> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f1c4c080a90> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
config.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATED_LOGIN_REDIRECT | True |
ACCOUNT_AUTHENTICATION_METHOD | 'email' |
ACCOUNT_EMAIL_CONFIRMATION_AUTHENTICATED_REDIRECT_URL | '/' |
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS | 3 |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_EMAIL_VERIFICATION | 'mandatory' |
ACCOUNT_LOGIN_ATTEMPTS_LIMIT | 3 |
ACCOUNT_LOGIN_ATTEMPTS_TIMEOUT | 3600 |
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION | True |
ACCOUNT_LOGOUT_REDIRECT_URL | 'account_login' |
ACCOUNT_PRESERVE_USERNAME_CASING | True |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_MIN_LENGTH | 2 |
ACCOUNT_USERNAME_REQUIRED | True |
ADMINS | [] |
ALLOWED_HOSTS | ['detecting-ai.com', 'localhost', '35.239.69.105', '127.0.0.1'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/var/www/detecting-ai') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_5_CONFIGS | {'default': {'toolbar': ['heading', '|', 'outdent', 'indent', '|', 'bold', 'italic', 'link', 'underline', 'strikethrough', 'code', 'subscript', 'superscript', 'highlight', '|', 'codeBlock', 'sourceEditing', 'insertImage', 'bulletedList', 'numberedList', 'todoList', '|', 'blockQuote', 'imageUpload', '|', 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor', 'mediaEmbed', 'removeFormat', 'insertTable']}, 'extends': {'blockToolbar': ['paragraph', 'heading1', 'heading2', 'heading3', '|', 'bulletedList', 'table', 'numberedList', '|', 'blockQuote'], 'heading': {'options': [{'class': 'ck-heading_paragraph', 'model': 'paragraph', 'title': 'Paragraph'}, {'class': 'ck-heading_heading1', 'model': 'heading1', 'title': 'Heading 1', 'view': 'h1'}, {'class': 'ck-heading_heading2', 'model': 'heading2', 'title': 'Heading 2', 'view': 'h2'}, {'class': 'ck-heading_heading3', 'model': 'heading3', 'title': 'Heading 3', 'view': 'h3'}]}, 'image': {'styles': ['full', 'side', 'alignLeft', 'alignRight', 'alignCenter'], 'toolbar': ['imageTextAlternative', '|', 'imageStyle:alignLeft', 'imageStyle:alignRight', 'imageStyle:alignCenter', 'imageStyle:side', '|']}, 'table': {'contentToolbar': ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties'], 'tableCellProperties': {'backgroundColors': [{'color': 'hsl(4, ' '90%, ' '58%)', 'label': 'Red'}, {'color': 'hsl(340, ' '82%, ' '52%)', 'label': 'Pink'}, {'color': 'hsl(291, ' '64%, ' '42%)', 'label': 'Purple'}, {'color': 'hsl(262, ' '52%, ' '47%)', 'label': 'Deep ' 'Purple'}, {'color': 'hsl(231, ' '48%, ' '48%)', 'label': 'Indigo'}, {'color': 'hsl(207, ' '90%, ' '54%)', 'label': 'Blue'}], 'borderColors': [{'color': 'hsl(4, ' '90%, ' '58%)', 'label': 'Red'}, {'color': 'hsl(340, ' '82%, ' '52%)', 'label': 'Pink'}, {'color': 'hsl(291, ' '64%, ' '42%)', 'label': 'Purple'}, {'color': 'hsl(262, ' '52%, ' '47%)', 'label': 'Deep ' 'Purple'}, {'color': 'hsl(231, ' '48%, ' '48%)', 'label': 'Indigo'}, {'color': 'hsl(207, ' '90%, ' '54%)', 'label': 'Blue'}]}, 'tableProperties': {'backgroundColors': [{'color': 'hsl(4, ' '90%, ' '58%)', 'label': 'Red'}, {'color': 'hsl(340, ' '82%, ' '52%)', 'label': 'Pink'}, {'color': 'hsl(291, ' '64%, ' '42%)', 'label': 'Purple'}, {'color': 'hsl(262, ' '52%, ' '47%)', 'label': 'Deep ' 'Purple'}, {'color': 'hsl(231, ' '48%, ' '48%)', 'label': 'Indigo'}, {'color': 'hsl(207, ' '90%, ' '54%)', 'label': 'Blue'}], 'borderColors': [{'color': 'hsl(4, ' '90%, ' '58%)', 'label': 'Red'}, {'color': 'hsl(340, ' '82%, ' '52%)', 'label': 'Pink'}, {'color': 'hsl(291, ' '64%, ' '42%)', 'label': 'Purple'}, {'color': 'hsl(262, ' '52%, ' '47%)', 'label': 'Deep ' 'Purple'}, {'color': 'hsl(231, ' '48%, ' '48%)', 'label': 'Indigo'}, {'color': 'hsl(207, ' '90%, ' '54%)', 'label': 'Blue'}]}}, 'toolbar': ['heading', '|', 'outdent', 'indent', '|', 'bold', 'italic', 'link', 'underline', 'strikethrough', 'code', 'subscript', 'superscript', 'highlight', '|', 'codeBlock', 'sourceEditing', 'insertImage', 'bulletedList', 'numberedList', 'todoList', '|', 'blockQuote', 'imageUpload', '|', 'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor', 'mediaEmbed', 'removeFormat', 'insertTable']}, 'list': {'properties': {'reversed': 'true', 'startIndex': 'true', 'styles': 'true'}}} |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': PosixPath('/var/www/detecting-ai/db.sqlite3'), 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_CONFIRMATION_AUTHENTICATED_REDIRECT_URL | '/' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '[email protected]' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'aidetector', 'auth', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.google', 'crispy_forms', 'crispy_bootstrap4', 'django_ckeditor_5'] |
INTERNAL_IPS | [] |
LANGUAGES | [('de', 'German'), ('en', 'English'), ('ru', 'Russian'), ('nl', 'Dutch'), ('es', 'Spanish'), ('fr', 'French'), ('ar', 'Arabic'), ('pt', 'Portuguese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | ('/var/www/detecting-ai/locale/',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | 'login' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/detecting-ai/media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'config.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'config.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 5 |
SOCIALACCOUNT_AUTO_SIGNUP | True |
SOCIALACCOUNT_EMAIL_VERIFICATION | False |
SOCIALACCOUNT_LOGIN_ON_GET | True |
SOCIALACCOUNT_PROVIDERS | {'google': {'AUTH_PARAMS': {'access_type': 'online'}, 'SCOPE': ['profile', 'email']}} |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/detecting-ai/static/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.request']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'config.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.