Masetrix
Well-known member
Search for links like this in your access_ssl_log. If the IP is from external, it comes from externalto show the source of the link - is it internal or external?
Search for links like this in your access_ssl_log. If the IP is from external, it comes from externalto show the source of the link - is it internal or external?
Search for links like this in your access_ssl_log. If the IP is from external, it comes from external
That IS usefull and the only way to stop traffic like thisThanks sounds useful, but what is access_ssl_log? (Sorry I am abut ignorant)
Added "Referrer" field to display the URLs that linked to the 404 page.
Added option to search entries by URL or Redirect URL.
Added tabs to filter by links with or without redirects.
Added option to order by Entry date, Last view date and View count in both ascending and descending order.
Added admin option to add redirects using Regular Expressions.
Made some CSS adjustments to make longer links fit.
P.S. For those who want to donate, I have added a donation link in the resource description.
Server error log
Stack trace
- ErrorException: [E_WARNING] Invalid argument supplied for foreach()
- src/addons/Siropu/Custom404Page/Listener.php:18
- Generated by: Unknown account
- May 27, 2019 at 8:56 PM
#0 src/addons/Siropu/Custom404Page/Listener.php(18): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/joyfreak/...', 18, Array)
#1 [internal function]: Siropu\Custom404Page\Listener::appPubComplete(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/Extension.php(67): call_user_func_array(Array, Array)
#3 src/XF/App.php(2647): XF\Extension->fire('app_pub_complet...', Array, NULL)
#4 src/XF/Pub/App.php(462): XF\App->fire('app_pub_complet...', Array)
#5 src/XF/App.php(2180): XF\Pub\App->complete(Object(XF\Http\Response))
#6 src/XF.php(390): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state
array(4) {
["url"] => string(33) "/streams/4/tmsean/27929699/popout"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Server error log
Stack trace
- ErrorException: [E_NOTICE] Undefined index: siropuCustom404PageRegexRedirects
- src/addons/Siropu/Custom404Page/Listener.php:18
- Generated by: Unknown account
- May 27, 2019 at 8:56 PM
#0 src/addons/Siropu/Custom404Page/Listener.php(18): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/joyfreak/...', 18, Array)
#1 [internal function]: Siropu\Custom404Page\Listener::appPubComplete(Object(XF\Pub\App), Object(XF\Http\Response))
#2 src/XF/Extension.php(67): call_user_func_array(Array, Array)
#3 src/XF/App.php(2647): XF\Extension->fire('app_pub_complet...', Array, NULL)
#4 src/XF/Pub/App.php(462): XF\App->fire('app_pub_complet...', Array)
#5 src/XF/App.php(2180): XF\Pub\App->complete(Object(XF\Http\Response))
#6 src/XF.php(390): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state
array(4) {
["url"] => string(33) "/streams/4/tmsean/27929699/popout"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
The searchbox is also a 404. When a search bot hits it, it sees it as 404.Why a searchbox, thats old content. We give that page to a 404...
Hmmm, you could use somePersonal preference, good job your not a member then
Indeed, but I forgot that templates get rebuilt and the content is reset.Maybe something can be done to avoid this so others don't get confused?
(These are the ones I mentioned above post 32, thousand that all seem to be connected to /ratings/ ???
That means that the referrer was not available when the 404 page was accessed. It is probably generated by a bot.however they are all showing as N/A?
I believe that the Ratings 404s and other odd link combinations are related to misbehaving bots. There’s not much you can do other than banning them.
That means that the referrer was not available when the 404 page was accessed. It is probably generated by a bot.
<IfModule mod_rewrite.c>
RewriteRule ^(.*)rating/list(.*)$ https://example.com/ [R=301,L]
</IfModule>
Great update @Siropu, thanks for this. The new referrer functionality is working fine for me:
View attachment 203347
I have one request: Possibility to exclude certain URLs (with wildcards)
In my case I want to exclude hundreds of these kind of URLs: https://site.com/search/*
<IfModule mod_rewrite.c>
RewriteRule ^(.*)search(.*)$ https://example.com/ [R=301,L]
</IfModule>
/search/
because that is a part of a legitimate URL (for the search page)I actually have a similar request: filter out certain urls. Just like the filter to only see specific urls; have a filter that excludes specific urls.Great update @Siropu, thanks for this. The new referrer functionality is working fine for me:
View attachment 203347
I have one request: Possibility to exclude certain URLs (with wildcards)
In my case I want to exclude hundreds of these kind of URLs: https://site.com/search/*
PHP-MyAdmin -> Console -> TRUNCATEAlso would love to see a clear log option, to start all over again!
Many thanks!
xf_siropu_custom_404_page_not_found
;Or a simple button to clear it would suffice.PHP-MyAdmin -> Console -> TRUNCATExf_siropu_custom_404_page_not_found
;
No, the log list cleared.You want to have a button to delete all your redirects?
We use essential cookies to make this site work, and optional cookies to enhance your experience.